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
0 answers
12 views

When to use factor and ordinal factor?

When modeling a regression (glm.nb) one of my predictors is the number of sides of a road that has forest next to the road. This means my predictor can take one of three values. 0 = no forest on ...
Adina's user avatar
  • 1
0 votes
0 answers
13 views

Conditionally Quasi-random Choices and Qualitative Dependent Variable Models

I have a scenario about limited dependent variable models and some of their implications. Suppose that I estimate some limited dependent model, it does not really matter which one, that captures the ...
DarkenExcalibur's user avatar
-1 votes
0 answers
15 views

Creating variable for Regression Analysis after Exploratory Factor Analysis

My questionnaire comprises 20 statements regarding Social media based business and the answers to be given on a 5-point Likert-type scale (strongly disagree to strongly agree with a neutral midpoint). ...
Aydan Pakta's user avatar
0 votes
0 answers
13 views

"decreased", "same", "increased" outcomes : ordinal logistic vs multinomial logistic?

I am conducting a study where I have ordinal categorical outcome variables representing frequency for two distinct periods. My goal is to consolidate the responses from these periods into a single ...
HYL's user avatar
  • 355
1 vote
1 answer
39 views

How to interpret survey data with demographic information?

I have little statistical experience, but am helping to run a community needs survey for my organization. Many of the questions have a yes/no or multiple choice answer format. For example, "Do ...
April's user avatar
  • 11
0 votes
0 answers
11 views

Comparing representation of female subjects from past and current consensus statements

I am comparing the number of female subjects represented in studies for a consensus statement from 5 years ago, to a current statement. I have counts of female representation for each statement broken ...
user397094's user avatar
1 vote
0 answers
19 views

calculating a statistically significant difference in means between groups

A large number of subjects repeatedly pass or fail a test. The test frequency is irregular and randomized per user. Organize this data set in groups by the average test frequency being once per week (...
Martin's user avatar
  • 11
0 votes
0 answers
40 views

Chi-squared test with more than two variables, or should I run a different test?

I am looking at whether certain animals or categories of animals are more likely to use human-made trails than natural trails. We used camera traps and recorded for every case which animal it was, ...
Manon Obdeijn's user avatar
0 votes
0 answers
12 views

Calculating index scores for overlap between categorical variables

Lets say I have the following dataset, it has two categorical variables domain & country, and a ...
dendog's user avatar
  • 213
0 votes
0 answers
22 views

A policy evaluation with a dependent variable which is continuous and in (0,1) interval

I am conducting research in which I want to investigate the effect of tax incentives on research and development intensity in a group of firms. I have access to the data of a survey that: It's only ...
Saeed DM's user avatar
1 vote
1 answer
42 views

One proportion Z-test and Chi Square Goodness of Fit should be identical but return different results

My understanding is that a Chi Square Goodness of Fit test and a one-proportion Z-test should have identical p-values and be equivalent (https://youtu.be/-Vssir6yUNQ?si=4-t9Np9h4bedU9xN&t=423). ...
JE52's user avatar
  • 525
1 vote
0 answers
25 views

Categorical variables & their co-occurence as an explanatory variable?

A colleague of mine has performed experimental evolution of some bacteria populations in the presence of several antimicrobial agents. The experiment has been replicated twice (2 blocks containing ...
CaroZ's user avatar
  • 76
1 vote
0 answers
39 views

Are cumulative link models multinomial generalized nonlinear models?

I am trying to understand the following statement (Christensen and Brockhoff, 2013): Cumulative link mixed models is a member of a class of models sometimes referred to as multivariate generalized ...
medium-dimensional's user avatar
0 votes
1 answer
17 views

Specific correlation metric for categorical variables where matched values are of primary interest - does it have a name?

Hello fellow StackExchangers, Let's say I have an experiment where two people are asked several questions, and for each question, they can independently select one of 5 preformed answers (A to E). So ...
Jason's user avatar
  • 3
0 votes
1 answer
25 views

Linear model with categorical variables (and constant variable) in R

I'm trying to estimate days spent in hospital (length of stay, continuous variable) based on a clinical severity score (...
Edge's user avatar
  • 103
0 votes
0 answers
41 views

How to perform a chi-squared test on tables with multiple dimensions?

I want to test with the chi-squared test if there is a difference between the survival rate for each earthworm species and the flooding condition of my experiment. An example of my dataset, survival1, ...
Katerina Giullano's user avatar
0 votes
0 answers
22 views

Running all possible fixed effects combinations, LMER, PCA [duplicate]

my data looks like that: ...
Chemokine1's user avatar
0 votes
0 answers
23 views

Running all possible fixed effects combinations for linear mixed effects models

my data looks like this: ...
Chemokine1's user avatar
6 votes
5 answers
1k views

If a variable is coded as yes/no/unknown, is it categorical or ordinal?

The dataset has ten variables, and I am trying to conduct a cluster analysis. The ten variables are coded yes, no, or unknown. And I converted the character values ('yes', 'no', 'unknown') to numeric ...
user21531215's user avatar
1 vote
0 answers
53 views

Is this a dimensionality reduction problem?

I have an interesting (hopefully) data science problem and I want to post it here for discussion. Let's say we have a data set having ONE numerical column and FIVE categorical columns. For categorical ...
Sophia's user avatar
  • 111
0 votes
0 answers
13 views

Interaction between continuous and categorical variables in regression

If I have the following regression model: Where stock price is continuous dependent variable and earnings is a sole continuous independent variable. Earnings extremity is a categorical variable (three ...
user393305's user avatar
1 vote
0 answers
9 views

Any image datasets with Inter-annotator agreement (IAA) values recorded? [closed]

Is anyone familiar with publicly accessible image datasets that include Inter-annotator agreement (IAA) scores? Ideally for object detection or classification tasks. Thank you!
SQL_Noob's user avatar
0 votes
1 answer
69 views

LCA with covariates: is it still worthwhile to use 1 step approach?

Dear statisticians' community, I am trying to compute a Latent Class Analysis through Stata and/or R. I built a 5 classes LCA model using poLCA on R and added a set of covariates. It seems from the ...
Irene 's user avatar
0 votes
0 answers
22 views

Test if difference between two groups across 4 categories [duplicate]

I want to make a sensitivity analysis to test whether there is a statistically significant difference between the observations included for the study (n = 100,000) and the excluded observations (n = ...
user12541161's user avatar
1 vote
1 answer
26 views

Dichotomizing a continuous predictor leading to differing effects on 2 outcomes

I am fairly new to statistics as a Phd student. I am trying to understand how dichotomizing a continuous variable can lead to distinct effects on two dependent variables. So in a cross-sectional ...
magg's user avatar
  • 13
1 vote
0 answers
14 views

Slope coefficients of regression of two categories variable with continuous variable

If I have the following regression model: Where stock price is continuous dependent variable and earnings is a sole continuous independent variable. Earnings extremity is a categorical variable (three ...
user393305's user avatar
0 votes
1 answer
22 views

Group differences when dependent variable is nominal

I have 2 nominal independent variables (2*2 design), and 1 binary (yes/no) dependent variable. I want to see if is there a significant difference between the numbers of No in these 4 conditions. What ...
ala p's user avatar
  • 3
2 votes
1 answer
73 views

Compare two contingency tables with the same structure

I want to compare two contingency tables A and B with the same structure (same columns and rows). My first idea was to use chi squared distance $\sum_{i=1}^{p}{\frac{(O_i-E_i)^2}{E_i}}$. But, some ...
Mohamed Gueye's user avatar
0 votes
0 answers
15 views

Model identifiability when manually creating variables

I'd like to know if my intuition is correct. We have data where each patient can essentially have one of three categories of treatment over a period of time: untreated class 1 treatment class 2 ...
LucaS's user avatar
  • 515
0 votes
0 answers
21 views

Slope coefficients of Interaction between two categories and continuous variable

If I have the following regression model: Where wage is a continuous dependent variable and working hours is a sole continuous independent variable. Sex is a categorical variable (two categories: male ...
user393305's user avatar
0 votes
0 answers
43 views

What is the best way to analyze differences in demographics data among groups of different sizes

I have groups of individuals in a population. These groups have different sizes--for example, group 1 has 50 individuals and group 2 has 1000 individuals. I want to show the differences in the groups' ...
anni's user avatar
  • 11
0 votes
0 answers
24 views

Preferred statistics to evaluate interrater agreement of group of raters (nominal dependent variable, two groups of raters) and compare both groups

I hypothesized that a set of symptoms is not really specific to a particular syndrome (let´s say A), so I recruited two groups of experts to classify each symptom (I have 16) to condition A, B, C (...
Dr. Fernán Arana's user avatar
0 votes
1 answer
16 views

How to organize an overlapping ordinal variables?

I am analyzing some data with attributes about how long it takes to commute, and it is an overlapping ordinal variable like the following: Time Number of People 1-5 minutes 10 6-10 minutes 24 less ...
Po Sang Yu's user avatar
1 vote
1 answer
58 views

Analyzing importance of continuous and categorical variables in linear regression in R

I am using R. I have a data set with a binary (0,1) response and both continuous and categorical predictors. I would like to test the overall importance of these predictors one by one, and I am ...
brightlilac's user avatar
1 vote
1 answer
52 views

Correlation between discrete and categorical variables?

I am attempting to determine how to test the relationship between a discrete variable (the length of a string of text, my IV) and a categorical variable (binary, a yes or no outcome, my DV) but I'm ...
proofs_challenged's user avatar
0 votes
0 answers
42 views

Can I test for a significant difference within one variable?

I collected microplastics falling on an island in a year. The types of microplastics are fiber (F) and miscellaneous (M) particles. I want to know if the number of each that fell are significantly ...
NickW's user avatar
  • 1
0 votes
1 answer
21 views

Direction of main effects in cox regression and negative binomial regression changes when adding variables

For a research I am conducting I am looking at the effect of two categorical variables (dummy with values 0 and 1 for each group) on the speed and quantity with which customers make future purchases. ...
user234's user avatar
0 votes
0 answers
15 views

Can I use a categorical Variable as a numeric Variable? [duplicate]

I am currently working on a project involving a variable that represents the severity of a disease on an ordinal scale of 1 to 4, where 1 represents the least severe and 4 represents the most severe. ...
Jorge A's user avatar
  • 67
1 vote
1 answer
38 views

Should I treat a single response as multiple ones in separate models?

I have this data where participants listened to each stimulus and gave a rating (1~5) for each. But each stimulus contains multiple sentence-like units (i.e., intonational phrase) within it, and for ...
mousemouse's user avatar
7 votes
1 answer
281 views

Categorical variable in simple linear regression

I'm new to statistics. I have data that measures the effects of two different drugs (A and B) on the size of rabbits. The data consists of triplets $(\textrm{dose}, \mathrm{size}, \mathrm{type})$. I'm ...
the_dude's user avatar
  • 193
1 vote
0 answers
10 views

Is it necessary to choose predictors for svm or I use all my variables?

I have transformed my categorical variables to dummies and I have used the lasso method to decide which variables I choose to do the logistic regression, my question is: for the svm model do I need to ...
Ana's user avatar
  • 13
1 vote
1 answer
34 views

What test is appropriate for a continuous dependent variable and 2 independent variables (one categorical and one continuous)?

I have fish data from 2 sites and am looking to see if there is a difference in some hormone concentrations (continuous) between the sites. However, it turned out the size of the fish differed between ...
MBerry's user avatar
  • 11
0 votes
0 answers
19 views

Do I have to study the correlation between ordinal and nominal variables together?

I have a data frame made up of categorical and ordinal variables, I want to make a multiple binary logistic regression model. The steps that I am going to carry out are: See if the variables meet the ...
Ana's user avatar
  • 13
0 votes
0 answers
39 views

Cross validation with categorical variables

I'm trying to use cross validation to select which models are suitable, I'm following the R code here: https://rpubs.com/rdelgado/405322 I have used this code: ...
Ana's user avatar
  • 13
1 vote
1 answer
36 views

Recommender system - for single user

I am building a recommender system, in which for one system there will be only one user. So we cannot use something like user-user data. Recommendation is an item which contains 10-15 attributes ie ...
Raj's user avatar
  • 19
1 vote
1 answer
35 views

Why are interaction effects for categorical variables under our treatment not included?

We're trying to see the effects of treatments on the download speed of mobile data in 4 locations, with three variables: SIMs, Locations, and Time. SIMs has 2 factor levels, Locations has 4 factor ...
user avatar
1 vote
0 answers
33 views

Significantly different frequency distribution for categorical data

i have few frequency distributions of categorical data. for example ...
best wishes's user avatar
0 votes
0 answers
22 views

How can I update a contingency table based on evidence?

I have a series of contingency tables that are my population benchmarks and survey data. Practically speaking, we know the population benchmarks are largely, but not entirely, accurate; there are some ...
stat_is_quo's user avatar
1 vote
0 answers
9 views

Encoding hashed trackID data in sequence models

I have a sequential dataset consisting of a history of sequential media playback data for every user, where each playback has a "trackID" as a feature, corresponding to a hash ID of the song ...
Aryan Pariani's user avatar
0 votes
1 answer
52 views

Measuring the change in a categorical variable across two time points (data is dependent so chi2 does not hold) with some 0 cells

I am trying to see if there are differences in how comfortable people are in adopting children at two time points. Their responses are ordinal ex. very likely, somewhat likely, not at all likely etc. ...
ryanjg's user avatar
  • 1

1
2 3 4 5
71