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.

3,314 questions
Filter by
Sorted by
Tagged with
3 views

Testing the difference between multiple outcomes across multiple groups

Data set in R: ...
• 101
9 views

What would be a likelihood ratio test based on nested multinomial logistic regression models for one-sample testing of categorical distributions?

(Let’s assume a multinomial distribution with a size of just one, so a categorical distribution: either dog, cat, or alligator.) I have done multinomial two-sample tests a few times lately, and I’ve ...
• 31.3k
22 views

What test to compare two frequencies?

In my project I have to study the vigilance behaviour of birds, and I need to determine if adults start escaping from an approaching human more often than chicks. So I have the frequencies of adults ...
• 121
1 vote
35 views

Under what circumstances is a m-class classification Neural Network equal to a base category logit model for nominal responses

Here is the setup for an m-class classification neural network. $$z_j=\sigma(\alpha_0j+\alpha_j^T x), (j=1,...,k)$$ $$t=\beta_0+\Sigma^k_{j=1}\beta_j z_j)=\beta_0+\beta^Tx, (l=1,...,m)$$  y=f(x)=g(t)...
11 views

Interpreting the Explanatory Effect of Dropping Non-Significant Variables

I have a data set comprised of an overdispersed Poisson response variable, two standardized continuous features, and a categorical feature. I am using deviation coding on my categorical feature and I ...
• 227
20 views

"Consensus" on Analyzing Mixed Continuous and Categorical Data in the field of Statistics? [closed]

I have been trying to determine the popular "consensus" as to how mixed continuous and categorical data (e.g. a dataset that has variables on income and gender) is generally analyzed in the ...
• 5,728
14 views

Correlation between binary (true/false) variable(s) and a continuous variable (a real number)

I have four types of binary variables (true or false) and a single continuous variable. I want to analyze the correlation between any of those binary variables with the continuous variable. My dataset ...
14 views

N-Way ANOVA for Participation Rate Data

I am trying to conduct a test of statistical significance in a dataset with multiple categorical variables (which in reality have >2 levels each), each of which combine into different population ...
15 views

How many observations should there be for the less frequent level of a binary variable, in order to include it in MCA?

I am conducting a multiple correspondence analysis (MCA) on several binary variables. This link says: The graphs above can be used to identify variable categories with a very low frequency. These ...
• 1,641
195 views

Interpreting interaction effects for categorical reference group in regression

I am running a regression model in R including the following variables: Intent = continuous DV Attitude = continuous IV Story = categorical IV in 4 levels: Consumer, Heritage, Vision and Product ...
27 views

About the Numbers of Dummy Variables

I have a question on the choice of dummies in categorical regression. If there are 4 categories, can I just choose 2 dummy variables to represent them in the following way: Category-Z1,Z2 c1-1,0 c2-0,...
20 views

How can I do this ordinal regression? [closed]

How can I perform a ordinal regression analysis in R with the data shown in table 1? I have already tried to order my data (image 1). But now I have no idea what to do next. 1 - 6 represent class 0 - ...
• 11
20 views

Missing "None" class in outcome variable. Least bad way of handling missingness?

I'm dealing with a preexisting dataset with an outcome variable of suicide which entails the following classes, of which multiple can be selected, but they roughly escalate in severity. Check if ...
18 views

Partial effect of numerical variable for a fixed level of categorical variable in regression

I have a regression model (in R) as follows: lm(price ~ time + color + brand) where, price be the second hand price of sth (numerical), time be number of years ...
27 views

Simultanously fitting multiple regression models on one dataset [duplicate]

Suppose there are two groups of (x, y) pairs, and that x and y are linearly correlated but with different slopes and/or ...
• 418
1 vote
20 views

How to determine sample size when performing indirect sampling?

Problem Summary I want to know the minimum sample size needed for a given confidence level and margin of error when performing indirect sampling where samples from the two populations are not one-to-...
1 vote
50 views

Which statistics test should I use?

Group High is a year in which there was a high temperature change and group Low is a year in which there was a low temperature change. The classes represent an the percentage of coverage for a species ...
• 11
14 views

Binning and WoE transformation. Reducing number of categories for high cardinality features

I'm doing a credit default risk project. I have some features like a job title that has >100000 unique titles. What is the best way to reduce cardinality in a meaningful way? The end goal is to get ...
30 views

Using multiple mean tests instead of linear model

First, I would like to apologize because I'm a beginner in statistics and I'm surely confused on some points. This is one of my first statistic work doing for university. I would like to explain a ...
• 11
30 views

Clustering high-dimensional, categorical data

I'm trying to cluster ingredients in recipes to see which recipes cluster together. This is a kaggle dataset here: https://www.kaggle.com/datasets/shuyangli94/food-com-recipes-and-user-interactions ...
• 103
1 vote
51 views

How to consider categorial ordinal variable?

First, I would like to apologize because I'm a beginner in statistics and I'm surely confused on some points. I would like to explain a continuous quantitative variable, which is a species activity, ...
• 11
31 views

Should I transform numerical variables to categorical variables in GLM?

I'm building a GLM with couple of variables and I have a problem with how to organize my data. I have both numerical and categorical data and I'm struggling as to how should I structure 3 variables. I ...
14 views

Binary logistic regression with dummy variables for several different IVs

I want to carry out a binary regression where the DV is 0 = Never considered giving up pet, 1 = have considered giving up pet. I have several categorical variables that I want to enter into the model: ...
13 views

R statistical test for two groups with three categorial variables [duplicate]

I have two groups, in which three possible outcomes appeared at different frequencies, and I wanna know, if there is a significant difference in-between the groups. For instance, I have two potatoe ...
23 views

R statistical test for two groups with categorial data

I have two groups, in which three possible outcomes appeared at different frequencies, and I wanna know, if there is a significant difference in-between the groups. For instance, I have two potatoe ...
15 views

Interpretation multiple linear regression with cumulative coding for ordinal variable

In order to do a multiple linear regression with categorical variable, I transformed them with the cumulative coding : My problem is in the interpretation of the results of the regression : from what ...
• 13
170 views

Logistic Regression on multiple classes (Shouldn't it be only on binary?)

I'm a bit confused with the usage of logistic regression for multi-class classification. My understanding is that a logistic regression is dichotomous (two possible classes), so in the example of the ...
• 123
26 views

Ordinal Regression with Categorical Predictors in R (Proportional Odds Logistic Regression)

My independent variable is Party Identification which I think will be best to create dummy variables for (Conservative, Labour) and then Lib Dem would be the intercept if I'm not mistaken. The ...
1 vote
24 views

Using Cramér's V to evaluate correlation between categorial variables with small numbers within contingency tables

I am evaluating correlations between categorical variables in a data set. I have seen Cramér's V is one way I can calculate this, and I know it takes the chi-squared statistic as one of the elements ...
• 11
23 views

How to find what categorical variables explain a continuous dependent variable?

I am currently working on a statistical analysis for a project, I have a dependent variable ($y$) that represents delays in days, it's continuous and take integer values. I also have a set of over 90 ...
1 vote
20 views

measure of association between dichotomous variable and non -dichotomous (category of 5 levels) while correcting for multiple confounders?

I have a data with 2 groups (fit/healthy) and dietary intake data as ordered categories (less frequent to more frequent as 1,2,3,4,5). I have to assess the relationship between the groups and the ...
12 views

How to analyze a time series of categorical data?

I have some data that look like this: ...
• 359
1 vote
48 views

Are my random effects nested or crossed?

I am using the R package lme4 to build a mixed-effects model. My data is set up in the following way: ...
1 vote
29 views

Fitting a multinomial glm for a very large dataset

I have compositional data where for two groups, where each is represented by two ages, there are 100 possible categories for which I observed counts: ...
• 323
1 vote
20 views

What statistic would I use to explain the discrepancy between two binary variables?

I have 3 variables in a large dataset: whether students passed their multiple choice portion of their final (binary: pass-fail), whether they passed qualitative portion (binary: pass-fail), and ...
• 253
1 vote
18 views

Test whether two categorical questions are statistically different?

I have two questions (Q1, Q2) and they can be answered with either Yes or No. I want to test if there is a significant difference between the answers to Q1 and Q2, because the questions are related to ...
• 151
17 views

Categorical and ordinal variables and one dependent discrete variable

Í have a dataset with two categorical variables: let's say "city type" (categorical) and "living crampedness" (ordinal), and one discrete dependent variable ("house square ...
1 vote
20 views

Interaction between categorical variables with multiple levels in R

In the dataset I need to analyse, I need to look at whether the effect of people's profession (3 categories) on their scores on a test (I have already tested for this effect and found one) differs ...
31 views

Trying to Understand my Data: New to Statistics

I’m new to statistics and I’m a bit overwhelmed by all of the methods that I’ve been reading about. I’m finding that my biggest hurdle is understanding how my data would fit into different models. I ...
1 vote
92 views

Categorical linear-model coefficients from a pairwise competition experiment

I am presenting a question for which there may be a simple statistical answer, but I have prefaced it with perhaps a longer explanation, to err on the side of caution, in hopes that the data make more ...
40 views

What hypothesis testing for comparing two categorical distributions?

What statistical test do I need to use to test for a significant difference in the distributions of two different categorical variables? As an example, I need to test whether the distribution of a ...
1 vote
28 views

Binary variable in regression model (interview question)

I got this question, it may be easy but for some reason for me is not: you are given a binary variable $b\in [0,1]$, that has no predictive power on $y$, but has some on $X$. How would you use it to ...
• 155
17 views

interrater reliability with 12 pairs parents rating their own children in categorical variables

Please accept my apologies if the answer to this question already exists. This is the first time for me to do a study investigating the interrater reliability of a questionnaire. There are 12 pairs of ...
• 1
12 views

Interpreting output of models with categorical variables in R

I have a data set that contains coral reef data- count of fish (C_TOTAL), the habitat complexity measurement rugosity (RUGOSITY), and the area of the reef that the data was collected at (ZONE- 5 ...
28 views

Wanting an opinion on whether I should run my data as a correlation, comparison, or as a chi squared? [duplicate]

Problem I am trying to analyze my data being the color of my seeds (SEED COLOR) vs how the roots turned out when harvested (ROOT COLOR) and compare the two. I converted all of the colors to a number ...
18 views

Question about proper Data Analysis methods for A Discrete Dataset

everyone. I am a fourth-year statistics student and I wonder if I could have some recommendations for proper analysis methods for this dataset. The dataset contains var1, var2, var3, var4, var5, var6 ...
12 views

comparing data subset to whole

I am trying to write a story about my local high school and its gender diversity in AP programs. I have ethnic data for everyone enrolled, and for everyone in AP programs at the school. What/how is ...
31 views

How to predict next occurrence in sequence where data has both numerical and categorical values?

Lets say we have the following prediction problem. Given data of the following form: Number HasProperty1 HasProperty2 1.5 0 1 1.5 0 1 2 1 0 2 1 0 Where ...