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
15 views

Is a threshold for categorical variables necessary in GLM?

I was wondering if there is a specific guideline or rule of thumb somewhere regarding the use of categorical predictor levels with low representation in the dataset? I have a few categorical ...
0
votes
0answers
6 views

Use of SEM in case of categorical data like yes or no questions and continuous data like likert scale"

I am doing research on school effectiveness. i have to see the effect of different variables on school effectivenesss. Teacher related variables: Teacher competence ...
0
votes
1answer
21 views

Categorical features in a random forest

I am currently training a random forest. After transforming a categorical feature into dichotomous columns, should I drop the first level? For example, I have three unique values in a featured named <...
0
votes
0answers
9 views

Problem with dimension reduction using pca

Im measuring the concept of group centeredness through 4 dimensions. Of these 4 dimensions i have 2-3 statements. I have a small numerus from the survey. Im running pca for each of these dimensions ...
0
votes
1answer
25 views

Which test to use for paired samples with different sizes and only 1 categorical variable?

I am testing 9 rooms for bacteria growth, and want to see affects of heat. Assume Blue Room is colder, Red room is warmer. I am not sure how to approach this because samples are too small (so can't ...
2
votes
1answer
25 views

How to find “dependency” between categorical variables and the dependent variable, also categorical

Please edit the title if the wording is incorrect Imagine to have a dataset of recipes that works like this: each row is a recipe, where the ingredients are predictors and the dependent variable ...
0
votes
0answers
14 views

How to find out if interaction of three binary variables is significant?

If I have two binary explanatory variables $A$ and $B$, and one binary response variable $C$- we can find out if $C$ is associated with $A$ or $B$ by creating contingency tables of $A,C$ or $B,C$ and ...
0
votes
0answers
5 views

Isometric log-ratio transformatio in Python [closed]

I want to transform my categorical data with ILR transformation, and later transform it back with the inverse. In R there are the functions ilr and invilr to simply do it. I can't find anything close ...
0
votes
0answers
20 views

Regressing for Age in R Across Several Dependent Variables

I have been working on a large statistics project that for the majority of analyses, consists of fairly simple stats. However, I have been struggling with a more complex analysis and would really ...
0
votes
0answers
19 views

Why or when to convert a semi disperesed numeric column to a categorical column?

This is an open ended WHY TO or WHEN TO question rather than a question on HOW TO encode numeric to categorical data. I am currently working on Telco Customer Churn dataset from Kaggle. This is a ...
0
votes
0answers
14 views

Difference between CFA using WLSMV estimator and IRT

I am trying to understand the differences (or similarities) between conducting CFA on categorical data using the WLSMV estimator in SEM and item response theory analysis. I would appreciate any input. ...
1
vote
1answer
22 views

Reference for Fisher's exact test for $r \times c$ tables?

I see that in R, there is an example of running Fisher's exact test (see ?fisher.test) with an $r \times c$ contingency table with $r, c > 2$. I could not find ...
1
vote
0answers
64 views

Inter-rater agreement (raters >2) of non-random items

I ran a survey where participants (P) had to choose one category out of six (C1-C6) for each of five items. The data looks like this: ...
0
votes
1answer
20 views

How to test similar distribution of categorical data (k=3) between 2 paired samples

I'm looking for a test to compare the distributions of categorical data (3 levels: J,N,P) between 2 dependent groups (paired samples: question_1, question_2). We have 85 participants, each one of ...
0
votes
0answers
17 views

How to determine which columns make p-value result in 0.0 in contingency table?

I have a contingency table with which I am estimating if some categories are seasonal or not. I use p-value and Cramers V for that but for this question only p-value is important. The p-value resulted ...
0
votes
1answer
17 views

Within group variation for categorical dependent variable

I need some help. I am trying to test within group variations but my situation seems a little bit more complex and I’m yet to find a statistical test that caters to this situation. Or perhaps I ...
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
9 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
3 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
23 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 ...
2
votes
1answer
68 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
33 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
16 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
27 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
11 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
19 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. ...
-1
votes
0answers
23 views

How to compare categorical distributions?

I have a 4 by 4 tables. Rows corresponds to people group and columns are their decisions types. The ij of the table is the percentages of people type i who have decision type j. ...
0
votes
0answers
15 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
25 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
35 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
39 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
46 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
30 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
14 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
11 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
19 views

How Helmert Encoding is done here?

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
6 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
42 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
20 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
26 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
57 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
22 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
26 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
113 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
45 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
14 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 ...

1
2 3 4 5
57