Categorical data can take on a limited (usually fixed) number of possible values called categories. Categorical values "label", they do not "measure". Nominal and dichotomous/binary scale types are categorical. Some people consider ordinal scale categorical too.

learn more… | top users | synonyms (3)

0
votes
0answers
10 views

Independence test for two small, exhaustive, categorical variables

I've got a categorical variable $var$ and a binary variable $critere$, from a pretty small (n = 300) but exhaustive dataset (i.e., the dataset contains the whole population that I want to study). I ...
0
votes
0answers
35 views

use of dummy variables in regression equation

I have data where the regressor of interest is 7-point Likert scale responses to a questionnaire regarding experiences. These people are answering questions regarding a group with which they have ...
2
votes
0answers
12 views

Estimate latent states for a Bernoulli stace space model, when the latent states follow an AR(1) process

I am dealing with this model $$y_t|\alpha_t \sim Bernoulli \left( \frac{\exp (\alpha_t)}{ 1+ \exp(\alpha_t)} \right) $$ with $\alpha_t = \phi \alpha_{t-1} + \epsilon_t,$ where $\epsilon_t \sim ...
3
votes
1answer
28 views

Do I have to specify all main effects in a factorial ANOVA?

I am having an issue specifying main effects and interaction terms in an ANOVA model. The problem is, lets say that I have 3 factors, A,B and C. I am interested in the main effects of A, B but not C. ...
0
votes
1answer
18 views

How to implement knn in r with missing values?

I have this data set from https://archive.ics.uci.edu/ml/machine-learning-databases/credit-screening/crx.names which gives a good summary of the attributes im using. Some of the observations are ...
0
votes
0answers
15 views

When/how should I bucket/recode/group certain categorical levels in an “others” level?

Imagine I have a dataset with a categorical variable with many levels, and I want to use this dataset for binary (positive/negative) supervised learning. In this categorical variable certain levels ...
2
votes
1answer
33 views

Most appropriate way to construct overlapping dummies

What would be the most appropriate way to construct dummies with theoretical overlap? I'm doing a meta-regression of studies looking at the effect of certain interventions on X. Some studies use ...
0
votes
0answers
23 views

Statistical test for association between 3 categorical variables

If I want to find the association between three categorical variables (all coded yes/no). What statistical test should I use? I have read online that I can use multiple linear regression. But I have ...
2
votes
0answers
35 views

Statistical Significance?

I'm wondering if there is some sort of statistical significance test that would suit my data, or whether I have to depend solely on descriptive statistics. Here's what I've got: Thirty six students ...
0
votes
0answers
10 views

How to use categorical explanatory variables within cokriging models [closed]

I am using cokriging to model a continuous variable across my study unit (soil carbon). I have one continuous explanatory covariable (soil moisture) but also a categorical explanatory covariable ...
0
votes
0answers
14 views

Can I ignore a single Item Factor and proceed with the remaining factors ? Is it scientifically correct?

I did an EFA and got 7 factors . There were a total of 54 items in the survey instrument. Now, the factors are in such a manner that Factors 1 to 6 have decent number of items loaded ( ranging from ...
1
vote
1answer
26 views

1 continuous predictor and a 3 level ordinal outcome

I´m evaluating the impacts of logging in a forest, so my independent variable is the intensity of logging (i.e. trees per area) and my dependent variables are the injuries in the residual trees (the ...
0
votes
0answers
7 views

Interpreting a significant interaction with only 1 out of 3 dummy variables (arising from same categorical variable)?

I'm running logistic regression analyses (paired observations - we cluster on ID code (=xtlogit in STATA)) with: dependent variable: trust (0/1). independent variable: - eye pictures ...
0
votes
0answers
23 views

Compare factor levels in R [migrated]

I have a question regarding factors in R. Is there a way to compare the levels of each factor? I am interested in whether a level of one factor is a subset of a level of another factor. For example, ...
0
votes
0answers
15 views

Chi-square and subsequent comparisons

I have the following dataset and would like to find out firstly if I'm using the correct tests. The data are hospital admissions data for cause X and admissions data for all admissions. If an ...
0
votes
2answers
42 views

Will decision trees perform splitting of nodes by converting categorical values to numerical in practice?

In Decision trees, while doing classification or regression, are we using only numerical values. Suppose if i am having a column of 'Wind' as a feature. Suppose, I am having 5 rows ( observations ). ...
0
votes
2answers
27 views

Specify fake-numerical categorical feature to Random Forest?

Suppose I have a mixture of some categorical features and numerically continuous features. I would like to train a classifier based on the features by RandomForestClassifier() in SciKi Learn. Random ...
1
vote
1answer
21 views

Kernels for Categorical or Mixed Data

It appears that when data sets have a combination of categorical and continuous attributes, the common way to apply kernel algorithms to such data sets is to use a one hot encoding scheme for each ...
2
votes
0answers
37 views

R: Model selection with categorical variables using leaps and glmnet

I have a linear model containing a few continuous variables and four categorical variables, each represented by 12, 3, 4, and 5 dummy variables respectively. When using model selection criteria such ...
0
votes
0answers
15 views

Quantifying 1 factor count data with variable # of categories

I feel like this should be an easy question, but after lots of looking I"m stumped. I deal with continuous data almost exclusively, but in my infinite wisdom I designed this study that yielded ...
0
votes
0answers
41 views

Hierarchical clustering of categorical variables in R - alternative algorithms / tools

I am running a hierarchical clustering process in R, using daisyto compute a dissimilarity matrix and ...
0
votes
0answers
18 views

dummy variables to represent dyads, does it matter for marginal predictions?

I am interested in the effects of race and sex on some dichotomous outcome. I could structure the model such that I include a dummy for being female and a dummy for each racial/ethnic group with 1 ...
0
votes
1answer
23 views

Proportionality assumption test (SAS) for categorical predictors

For Cox regression with all categorical predictors, I want to model time-dependent covariates (time*cov in Proc PHREG) to ...
1
vote
1answer
36 views

R: visualizing kmodes clusters

I am working on cluster analysis of a completely categorical data set using package klaR and function kmodes. Sample of the ...
0
votes
1answer
31 views

How can I change the control group for my dummy variables in R? [closed]

I am using R to run a linear regression. I have a group of 3 dummy variables that represent 4 plots of land (labeled as group 1, 2, 3, and 4). I would like to set Group 4 as the control group when I ...
0
votes
0answers
10 views

Efficiently processing a large MxNx2 logistic regression, only interactions matter

I'm working with a large 3-way contingency table (roughly $180 \times 40 \times 2$) — both independent variables are categorical and the response is binary. One independent variable (X) ...
0
votes
0answers
19 views

Interpreting output with deviation (sum)coding

How do I interpret main and interaction effects with deviation coding? This is the output I generated for Code_IS_Condition (3 levels), ...
0
votes
0answers
29 views

deal with interaction that is composed of correlated variables in multinomial logistic regression

I'm trying to build a model between three variables: y=user interest, x1=time, and x2=space. All the three variables are categorical, with the response variable y=user interest being described by ...
0
votes
0answers
11 views

Panel/Longitudinal Data - Seasonality, Variable Selection

I am analyzing a set of panel data by linear regression. I would like to use a fixed effects model, so I am fitting the model below by OLS: $$(y_{it}-\bar y_i)=\beta (X_{it}-\bar X_i) ...
0
votes
0answers
32 views

Can I have only one observation for each combination of factor levels in a regression model / is this model appropriate?

Can I have only one observation for each combination of factor levels in a regression model, or is this model appropriate? I have what I thought was a simple problem. I am working on a problem ...
0
votes
0answers
13 views

Measure of Association in categorical variables

I have a data a labelled data set with mix of categorical and continuous input variables, using which I have to do a predictive modelling. The data has following properties ...
0
votes
3answers
40 views

How to use Random Forest for categorical variables with missing value

I have a labelled dataset of 1M rows and 600 features. I am trying to build a supervised learning model for prediction. I am particularly working with Random forests in R.The data I have has following ...
3
votes
1answer
67 views

How should I implement this interaction between a continuous and categorical predictor?

I have a continuous outcome variable. I understand that if I have a binary predictor, and a continuous predictor, and an interaction, then the model looks like this: $y_{i} = \beta_{0} + ...
0
votes
1answer
11 views

Sample size log linear analysis?

Is there a rule of thumb for the sample size for a log linear analysis? For example, would it be inappropriate to use this analysis for a sample size of 50 with 3 predictors?
1
vote
0answers
43 views

Least squares regression of NPS

I would like to monitor customer satisfaction over time and would ideally like to use NPS for that. Specifically, I would like to see if there's an overall trend over time. Could I regress Net ...
0
votes
1answer
28 views

How to choose contrasts for nominal categorical Independent variable so that it results in uncorrelated dummies

I have a nominal categorical predictor and a continuous dependent variable..I want to perform linear regression using lm in R. If the contrasts are such that the resulting dummy variables are ...
0
votes
0answers
5 views

Finding the differences for nominal data when each participant contributes to more than one cell in the frequency table?

Finding the differences for nominal data when each participant contributes to more than one cell in the frequency table. The point is that I don't have paired nominal data as it is in repeated ...
0
votes
0answers
11 views

how to perform the test for categorical data ( multi-level)

I am very newbie in statistics and I my problem is as follows: A product have different types (D,E,F,G), a process will automatically assign different promo_code to each type. But the process may ...
0
votes
0answers
12 views

Looking at whether two binary variables vary with a third

Suppose we have three binary variables $A,B$ and $C$. I want to see whether the distribution of $A$ and $B$ vary with $C$. Would the Cochran-Mantel-Haenzel test be good to use? So for $C=0$ we have a ...
1
vote
0answers
21 views

Assign the tree species most representitive of a specific size class

I am replicating another study in which trees were assigned to a class based on diameter. The most representative species of each class was identified for each plot sampled. The classes are sapling ...
0
votes
1answer
17 views

Quantitative and categorial predictor in one model

This is what I would like to know, due to some logical problem behind! I have a model as: Crown radius = Diameter at breast height + Location DBH is quantitative, like 30cm, 40cm... Location is ...
0
votes
1answer
29 views

Dummy Variable problem

I am doing a regression project based on this dataset. I wonder whether wouldn't it be better to transform the IV origin from 1,2,3 to three dummy variables like this: When the car would be from ...
1
vote
1answer
37 views

Probit model: marginal effects cannot be estimated because one dummy variable was dropped for predicting failure perfectly

I have a basic question about the -margins- command in Stata: I was wondering if there was a workaround to run marginal effects for a model where one of the dummy ...
1
vote
1answer
29 views

Comparing distributions of categorical data

Suppose that there are four categories: 1,2,3 and 4. The data sets look like this: Data 1: 1,2,4,3,4,1,2,3,4 Data 2: 3,3,4,1,2,3,4,3,2,1,2,3,4 What ...
0
votes
1answer
33 views

Which statistical analysis test can I use when the instances in the sample is not independent?

I am wondering if the data I have here is eligible to do statistical analysis. The problem is: I collected data from 20 person with age less than 20 (Group A), from 21 person with age large than 30 ...
13
votes
8answers
500 views

How can you visualize the relationship between 3 categorical variables?

I have a dataset with three categorical variables and I want to visualize the relationship between all three in one graph. Any ideas? Currently I am using the following three graphs: Each graph is ...
0
votes
0answers
6 views

Using interaction terms to exclude sample members who do not meet certain conditions?

I believe this might be a specific application of the non-compliance problem in experimental design and estimating treatment effects, but I could be wrong. I want to model the impact of certain ...
1
vote
2answers
33 views

How to show that the condition of one hand predicts the condition of the other hand

I have this kind of data: subject hand condition s01 left 1 s01 right 0 s02 left 2 s02 right 2 .. .. .. ...
0
votes
0answers
9 views

Correlation/association for categorical and interval data [duplicate]

I am testing data for correlation. The outcome variable is categorical with 8 categories. There are 20 predictor variables, some are categorical and some are interval. The questions are Is there ...
2
votes
1answer
115 views

Features that correspond to rare events: how rare is “too rare” to be informative?

I am working with 82 binary features constructed from six categorical features. I have about 1,600 observations. Some of these features correspond to extremely rare categories. Some of them have only ...