Questions tagged [categorical-data]

Categorical (also called nominal) data can take on a limited number of possible values called categories. Categorical values "label", they do not "measure". Please use [ordinal-data] tag for discrete but ordered data types.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Sensitivity test

I have an independent variable that has 3 groups - 'Yes' 'No' and 'Unknown'. I have decided that I can assume the 'Unknowns' as 'No'. I want to run sensitivity analysis to test whether making this ...
0
votes
0answers
17 views

Boxplot on one one significant interaction of mixed effect model

I have a mixed effect model with two interactions statistically significant : one related to a continuous variable, the time of my experiment and one in relation to a categorical variable the day of ...
0
votes
0answers
5 views

Data-preprocessing for a machine learning model

I am confused about how to preprocess range based category such as age, tumor-size & inv-nodes. Should I take an average of the limits, as in - 14.5, 24.5 and so on or do one hot encoding of the ...
3
votes
0answers
35 views

Visualizing regression with categorical variables

I am working my way through linear models in matrix form using mainly Brown (2014) Linear Models in Matrix Form. The book presents a schematic representation of observed and fitted values in a linear ...
3
votes
1answer
83 views

Probability of linear separation in a dataset with categorical response

I am simulating datasets to which I fit polytomous logistic regression models. The maximum likelihood estimator of this model is undefined when all categories are linearly separated (and it is quite ...
1
vote
1answer
35 views

What kind of statistic test should i use?

I need some help to find the correct method for my hypothesis. The aim is to find out whether the use of a certain procedure (case A: none / case B: use of my artifact) influences the time factor of a ...
1
vote
0answers
11 views

Normalizing product of ordered categorical CDFs

Let $\mathbf{p} = [p_1, \ldots, p_K]^\top$ and $\mathbf{q} = [q_1, \ldots, q_K]^\top$ define categorical distributions over a set of classes $\mathcal{C}_1, \ldots, \mathcal{C}_K$. Define $P_i = \sum_{...
0
votes
0answers
17 views

Factor analysis when I have mixture of continuous and dichotomous variables

I am trying to determine if there is a significant difference between two groups for a single continuous variable while accounting for baseline differences in dichotomous variables in each group. To ...
1
vote
1answer
31 views

How to compare two sets of categorical observations?

I have two strains of organisms, strain A and strain B. Each organism is allowed to move along a closed line segment and is initially positioned at the midpoint of the line segment. After a given ...
0
votes
0answers
21 views

Logistic regression: Controlling for unequal distribution in categorical variable

My question title is poorly worded but I hope I can explain my problem here. I have a dataset that contains a binary outcome variable (RP), which I would like to predict using two categorical ...
1
vote
0answers
20 views

Factor analysis structured with a dependent variable (not independent variable)

A model from the social sciences has been suggested that income inequality (as a dependent variable) "causes" a range of downstream independent variables including teenage fertility, obesity etc. ...
0
votes
0answers
20 views

Confidence interval for categorical samples as a percentage

I have some randomly sampled data and I'm looking to slice the data into subgroups and present an attribute as a percentage of several categories (e.g. attr == A | B...
0
votes
0answers
46 views

nested random effect - Can I nest continuous (time) and categorical variable (condition)?

Apologies for another stupid question within such a short period of time. I am struggling to include "Time" (continuous variable) in my model where I test the effects of 3 "Periods" (conditions) in a ...
0
votes
1answer
38 views

Can model comparison be performed on a single dummy variable of a 3-level categorical predictor?

Let's say I have some observations, Y, that I want to regress using a model containing two predictors, X and W. If I'm interested in whether adding X to the model improves it, according to some ...
1
vote
1answer
55 views

Continuous time (hours in decimals) interacting with a categorical variable

Apologies for the stupid question, but I appreciate any comment or suggestion. I have a dataset xdata, describing the frequency of the response variable X (behaviour - continuous) for 15 individuals (...
2
votes
2answers
54 views

Why the variable type is discrete ordinal and not interval?

Assume that we have a 5-likert scale questionnaire, we want to measure cheating behavior (plagiarism, use of crib notes, etc.) among students. We have 0-disagree and 1-agree. So I’m assuming 0.25-...
2
votes
1answer
31 views

For companies competing in the same field, how to test if their market share changes over a period of time is siginificant

Suppose 3 companies, A, B, and C, compete for market shares in the same field. In year 1, their market shares in percentage are a1, b1, and c1. And in year 2, market shares are a2, b2 and c2. With $\...
0
votes
0answers
15 views

Can I use multiple Chi-Square tests and combine the results of the analyses or is there a better way to do this?

I have the results of a survey of employee satisfaction, where employees answer 20 questions as either "agree", "disagree", or "neutral". The questions are grouped into themes as follows: Q1-5: "...
0
votes
0answers
12 views

Removing group effects from data

I have a set of data which consists of measurements from sensors for a machine. I know that depending on what the machine is doing at the time, that several different ranges of measurement data will ...
0
votes
0answers
32 views

How Helmert Encoding is done here? [duplicate]

I was going through an article on Helmert Coding there I encountered an example in which I was not able to understand how Helmert coding is done. I went through How to calculate Helmert Coding this ...
0
votes
0answers
8 views

Significance test for a discrete symmetric ordinal distribution

What are possible extensions to the binomial test for a multinomial distribution? Here is a concrete examples: let's say I have 5 positive and 10 negative outcomes with a one-sided test for the null ...
0
votes
1answer
59 views

Logistic regression analysis after changing variables to factors [closed]

I have done a logistic regression with my binary outcome. Majority of my variables in my model were changed to factors as they are categorical. I put my categories into levels ie. Very Low = 1, Medium=...
0
votes
2answers
24 views

Categorical Principal Components Analysis

I performed a Categorical Principal Components Analysis in ordinal data and I created 3 dimensions. Should I use the component loadings or the object scores, as my new 3 variables?
3
votes
1answer
30 views

Visually, how strong would you rate the association between this nominal predictor variable and continuous response variable?

I've yet to find an easy-to-understand and easy-to-implement way to statistically model the strength of association between nominal data and continuous data. So I'm trying to get a rough idea visually ...
0
votes
0answers
24 views

How to deal with 100+ levels in categorical variable in multiple linear regression? [duplicate]

Im trying to model: Y~x0+x1+x2+x3+x4, were Y is a continous variable (cost), x0 is the ...
2
votes
1answer
48 views

How to examine the relationship between categorical variables with several levels?

I would like examine if the job satisfaction of part-time workers is higher or lower compared to full-time workers. My dataset consists of 4125 cross-sectional observations. independent variable: ...
0
votes
0answers
9 views

Correlation between classes within categorical feature in a ML model

I have a dataset containing numerical and categorical features. Let's say I have one categorical feature C with classes c_0 ... c_n. I build a model that has some ...
0
votes
2answers
64 views

How to deal with problems like this ? What machine learning algorithms should be used?

I am new to machine learning and this community too. So please pardon me if i make any mistake while putting up this question. I am trying this https://www.kaggle.com/doaaalsenani/usa-cers-dataset ...
1
vote
0answers
37 views

How to use Cronbach's Alpha?

Is it appropriate to use Cronbach's Alpha for nominal variables? I have 20 nominal variables (two dimensions with 10 questions each) that ask about the characteristics of work performance. The ...
1
vote
1answer
31 views

Help with understanding logistic regression's $R^2$ value

I have a set of ordinal varies (0,1,2,3,4) and I'm trying to do binary logistic regression with a dichotomous variable (0,1). These are the values, where the numerator is = 1 and the denominator is = (...
1
vote
1answer
1k views

Multiple regression with mixed continuous/categorical variables: Dummy coding, scaling, regularization

I have a dataset, consisting of 4 continuous and 1 categorical (three levels) indepentend variable. On this dataset, I want to perform a multiple linear regression with a regularization (specifically ...
1
vote
0answers
64 views

How to analyse pre-post ordinal data?

I collected pre-post data from a randomized controlled experiment. The intervention for the experiment group is an educational game and the pre-test and post-test contains 10 multiple-choice ...
2
votes
0answers
15 views

Why/when do attitudinal scales introduce endogeneity?

I use an example to illustrate my question. I have a model that explains choice of low fat vs full fat milk, that was actually bought in a store. We model it with a binary logistic regression. The ...
0
votes
1answer
31 views

Data pre-processing on test files

I am working on a classification problem. I have a training file with a label and a separate test file without a label field. I needed to remove some rows that contained missing values from the ...
1
vote
2answers
30 views

How to test a hypothesis about two categorical data sets?

assuming we have two data sets of e-mails. All e-mails were sent to people and contain a link which was clicked. Furthermore, we know how fast the link was clicked. The first column in the following ...
1
vote
2answers
199 views

How to distinguish the continuous and categorical variable based on the number of unique values?

I have a very large dataset contained 600,000 rows and 400 columns. Most of the variables are anonymous and named as Vi, i=1,2,...,400, and all of them are either int or float. When I am dealing with ...
1
vote
0answers
28 views

Unsupervised methods for a dataset that contains ordinal categorical variables casted as numerical

I'm fairly new to statistical learning. At the moment, I'm using the EU-SILC dataset to analyse the factors that determine the French income (x). It can be found here: https://ec.europa.eu/eurostat/...
1
vote
0answers
80 views

Highly correlated variable, when to remove

I have a dataset that includes both course number and course name. For some models such as regression, a Pearson Correlation matrix is obtained and one of any pair of features that are highly ...
2
votes
1answer
33 views

A peer-reviewed source/textbook about correlation between a nominal (IV) and a continuous (DV) variable

I am having really hard time finding a citable source for the method described in the following link: Correlation between a nominal (IV) and a continuous (DV) variable. I found this method very ...
1
vote
1answer
44 views

Categorical and Numerical Features - Correlation [closed]

I am working with a dataset that has both numerical and categorical features. I have seen this post which discusses the problem in R, and was wondering if someone could recommend the same in ...
1
vote
1answer
49 views

Why did I get inconsistent result from ANOVA and wald test

I tested the effect of one factor X on my response Y. The factor has four levels A, B, C, and D and the null hypothesis I want to test is A=B=C=D. ...
0
votes
0answers
12 views

A suggestion for using fix-effect in panel data with categorical dependent variable in R

Currently, I'm analyzing data of concerts over 30 years which covers 10 rock bands in R. In doing so, I'm planning to run a logistic regression with fix-effects and clustered standard errors like: <...
1
vote
2answers
43 views

I want to compare the effect of alcohol ban. I have some variables like income before and after ban. How can i compare them statistically

I am doing a project on effect of alcohol ban on women and children. My objectives are effect on violence,income etc.. I have collected the data like domestic violence before and after ban, income ...
3
votes
2answers
111 views

finding the correlation among categorical, numerical data

I have a mix of predictors that are numerical and categorical. Among the numerical predictors, it is easy to calculate the correlation (Spearman, Pearson). Among categorical data, I know a few (...
0
votes
0answers
47 views

On what basis do I set the baseline for a multinomial logistic regression model?

I am interested in comparing the microhabitat choices made by juvenile lobsters. Lobsters were presented with a patch of seagrass and another habitat type (ie bare sand) at different seagrass ...
0
votes
0answers
71 views

What do the intercepts of multinomial logistic regression model mean?

I am interested in comparing the microhabitat choices made by juvenile lobsters. Lobsters were presented with a patch of seagrass and another habitat type (ie bare sand) at different seagrass ...
0
votes
1answer
9 views

What is a use case guide for best practice relatedness metrics between the following variable types?

I'm new to data analysis and I've been messing it up by using Pearson's correlation coefficient to measure possible relationships between different variables in my data set, both dependent and ...
0
votes
0answers
39 views

Evaluate and rank relationship between numeric and categorical variables

I have a set of numerical variable that I know are correlated among them. In order to avoid multicollinearity in my machine learning model, I would like to drop all except one of them. In order to ...
0
votes
0answers
45 views

MCAR tests on mixed variable datasets [findings + discussion]

I have been spending a whole week on researching about testing on missingness mechanism in datasets and I thought it will be helpful to share what I found out about the 2 available MCAR test packages ...
1
vote
1answer
53 views

Fisher's test for a $2 \times 2$ table within a $2\times k$ table

I'm struggling with analysing the following categorical data shown in the barplot. There are 5 categories (R, D, E, N, A) and I have the number of votes (number of respondents) for each one. As shown ...

1
3 4
5
6 7
60