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
1
vote
1answer
22 views

How to deal with the categorical variables with few data for prediction

The image below shows how the rating for the heating quality will affect sale price.The data is about apartments and it's properties. E.g Rooms, GarageSize, BasementSize, etc. This visualization will ...
2
votes
1answer
48 views

fast ML algorithms for binary classification with (large+sparse) binary input data [closed]

I'm sorry that this is so very broad, but as a non-ML scientist it feels to be almost impossible to keep up with recent developments (esp. in deep learning etc.). Hence, I'm asking for guidance on how ...
0
votes
0answers
8 views

What kind of discrete limited dependent variable regression do I need? Or other?

I have a sample of 78 scientific articles plus 385 software and data resources used by these papers. Each paper has between 1-26 such resources. Sometimes, the creators of software/data will request ...
1
vote
0answers
15 views

Association between three categorical variables [closed]

Forgive me if this is a silly stats question. I have three nominal variables which describe yes/no for growth of bacteria. They are three different sample types (infant, poultry and floor surface). ...
0
votes
1answer
60 views

How to interpret mixed effects logistic regression of 2 categorical predictors?

if A is the Group reference level & Noun is the Class reference level, is this summary telling us GroupC is significantly different from GroupA at only the level of nouns(intercept)? Or is it an ...
0
votes
2answers
14 views

Collapsed Categories - Interval or Ordinal Scale

Is it appropriate to treat the following indicator as having an interval scale: "In the last two weeks, how many times have you been late for school: 1. Never (62% of respondents) 2. Once or twice (15%...
0
votes
0answers
19 views

Are multicollinearity an issue for continuous variables only, and maybe ordinal variables, but not for nominal variables?

To avoid multicollinearity, correlation analysis can be conducted between variables. Some applicable tests for correlation measurement are Pearson's correlation. Spearman's rank correlation. ...
0
votes
1answer
102 views

Clustering Binary and Continuous Features

If you need to cluster a dataset with the following characteristics: It has a mix of binary and continuous features. It is very sparse. For most features, you only have values for 15% of the ...
0
votes
1answer
49 views

Correlation between discrete and continuous data

I would like to caculate the correlation between two vectors. One vector represents the intensity of an emotion as continuous data between 0 and 100. The other vector represents the intensitiy of an ...
0
votes
0answers
74 views

Repeated measure ANOVA with between-subject factor in Python?

I'm performing repeated measure ANOVA on a 3x3 within-subject factor experiment using statsmodels's AnovaRM. It's a response time experiment, so each participant went through a lot of trials. This ...
0
votes
3answers
43 views

Guessing the gender of someone submitting a multiple choice questionnaire

If I have 100 people fill out a multiple choice questionnaire (containing 10 questions with 5 answer choices for each question) and the respondent writes their gender on their questionnaire, what is ...
0
votes
0answers
22 views

Is chi squared test of independence correct with control group?

I'm analyzing some data from an experiment in which passage of time between conflicting tasks is my independent variable and one of my dependent variables is a dichotomous one ("A","B"). I also have a ...
0
votes
1answer
21 views

Using one-hot encoded features along with continuous-valued features?

The task I wanted to do is a prediction task where most of the features are continuous numbers and some of the features are one-hot encoded. I am training a neural network and I wondered that, is it ...
0
votes
1answer
29 views

What type of graphic will be suitable for 3 continuous vs 1 categorical variable [closed]

I want to create a graphic to explore relationship between 3 continuous and 1 categorical variable. I have 2 different examples I want to investigate. 1- the numeric variables are num of bedrooms ...
3
votes
2answers
198 views

Is age categorical or quantitative or both?

First off, sorry if this is a simple question. I've been asked to get stuck in with some clinical epidemiology. The internet is my only support group as I am not a student under the supervision of an ...
2
votes
2answers
34 views

Linear model with binary variable VS create two linear models

Let's say, there is a variable sex in the data set. I could either: Build one model on the whole data and encode the sex into <...
0
votes
0answers
16 views

Merging categories with small n (or median splits on categorical variables)

I've found a lot of resources on why median splits on continuous variables are generally bad, but I haven't found anything on merging levels from already categorical variables, specifically when some ...
0
votes
0answers
28 views

Interpretation of Nominal Scaling in PLSPM

I used nominal scaling in PLSPM in R and I am uncertain how to interpret the results. I made a minimal code example from the satisfaction data set and made up a nominal value for color (red, blue, ...
2
votes
1answer
122 views

Is it a good practice to drop rare categorical data?

I have a dataset with about 100K samples described mostly by categorical features. The number of unique values in the categories range from 20 to almost 7000. Since these are categorical values and ...
1
vote
1answer
52 views

Is Chi-Square Correct

I took bacteria samples at 30 grocery stores. Each grocery store was tested for 3 different bacteria types. I then taught a foodborne illness class to the managers of the grocery stores. After ...
1
vote
1answer
2k views

Encoding of categorical variables with high cardinality

For unsupervised anomaly detection / fraud analytics on credit card data (where I don't have labeled fraudulent cases), there are a lot of variables to consider. The data is of mixed type with ...
0
votes
0answers
37 views

Relationship between two categorical variables

I have collected data for Dish Name, Cooking Method, Type of Dish, Cuisine and Nature ( given below ). I am trying to find out relationship between Cuisine and Type of Dish. I have tried to implement ...
0
votes
0answers
12 views
2
votes
0answers
36 views

Am I utilizing chi-squared incorrectly?

I have a frequency table with the following structure: ...
1
vote
1answer
111 views

Appropriate way to visualize significance in 2x3 contingency table using mosaic plot

I've checked multiple threads about handling or visualizing contingency tables, but can't find one that can help my current question. I have a 2x3 contingency table: "group" variable has 3 levels not ...
0
votes
0answers
22 views

Is there a standard approach for estimating robust multinomial logit models?

I have been reading the "Robust Statistics" book by Morona, Martin and Yohai. To estimate a robust version of logistic regression, they recommend using redescending weighted $M$-estimator. For more ...
0
votes
0answers
35 views

Random Forest limitation of 53 categories

Since Random Forest has limitation of 53 categories, which categorical model can be applied to categorical data with vectors which have 100K+ levels? ...
0
votes
0answers
52 views

Get posterior distribution of categorical variable given empirical continuous-categorical priors?

Suppose I have categorical variable $Z \in D$ defined for some finite domain $D$. I also have a continuous variable $X \in \mathbb{R}$ which is observed. From historical data samples I have the ...
2
votes
2answers
46 views

Which analysis should I use

I am comparing data from two cohorts of patients that underwent a surgical procedure: Group 1 (2013-2015, n=157) and Group 2 (2016-2018, n=146). In both cohorts, I have patients that had survived and ...
0
votes
0answers
18 views

Clustering Algorithms- Sample Size

I have a small sample (290 observations) of categorical data and I am trying to decide on what clustering method to use. I am considering k-medoids, hierarchical clustering and Latent Class Clustering....
1
vote
1answer
19 views

What does it mean to have “groups” and “levels” of variables?

Using this website, a user can find a correct statistical test for their project. However, what do they mean when they write "2+ groups" or "2+ levels"?
0
votes
0answers
11 views

Convergent & Discriminant Validity -Same construct (measured by different meaures) in two different samples

I don't know how to go about looking at the Convergent & Discriminant Validity of the same construct measured with two different scales in two different contexts. This is a cross-cultural ...
0
votes
1answer
82 views

How is GVIF calculated for categorical variables?Also is there any other way to detect multi co-linearity of categorical variables?

I was tring to find a way to remove the redundant categorical variables as features. I believe GVIF would give high value for the redundant/multicollinear categorical variables. Please let me know if ...
0
votes
0answers
40 views

Need help getting started on this categorical data problem

I'm not sure what model I should use for this data. How do I treat the response variable as nominal? I'm using r studio. Question: The pneumo data gives the number of coal miners classifies by ...
0
votes
0answers
80 views

Sensitivity Analysis with categorical predictive variables in R

I am doing a project where I have to predict the Sales Units in fashion and intend to run a Random Forest, Neural Networks and Support Vector Machine models. However, my predictive variables are all ...
0
votes
0answers
19 views

Ordinal categorical predictor in multiple regression

I have an ordinal predictor (family income), which has 4 levels: 1- Below $2000 2- $2000 - $3999 3- $4000 - $5999 4- $6000 - $7999 So each level is an increase ...
1
vote
2answers
43 views

Can I use regression to analyze relationship between rating and choose-all-that-apply data?

If I sent all of my customers a product to try, let's say it is a laundry detergent product. I then ask them to rank their liking of this product, from 1 to 9. then I ask them 'which words do they ...
0
votes
1answer
12 views

Relationship/independence between 2 binary varibales

I got a dataset in Excel with 2 dichotomous variables: trained (1 or 0), part-time (1 or 0). The question asks if whether there is a relationship between those who have been trained and whether they ...
1
vote
1answer
300 views

How to calculate the coefficient of a dummy variable reference category?

I am currently building a regression model with numerous continuous, categorical (employing dummies) and interaction variables. I understand we must use k-1 dummies with one variable becoming the ...
0
votes
0answers
30 views

When is categorical data ordinal?

I've obtained some datasets on which I should perform the analysis. Since I have not made the questionnaires I have some doubts about the questions with categorical outcomes. I'm unsure whether I ...
0
votes
0answers
16 views

between group contrasts using effect coded dummy variables in regression

I was taught a technique for doing this but can no longer figure out why this works, though using a simple data set I am able to prove it. I will go through that proof here as I think it's the ...
1
vote
0answers
61 views

Correlation between discrete and binary variables

I have a binary variable representing happiness. This variable can take binary values of 0 (not happy) and 1 (happy). I have another discrete variable representing valence (representing if emotion is ...
1
vote
2answers
60 views

Finding Relationship between Categorical and Continuous data

A subset of my dataset looks as follows where cells in "cat1_ids" column contains list of "cat1" categories and cells in "person_id_list" column contains list of persons id. There are 2000 "cat1" ...
0
votes
1answer
48 views

How should I model this data?

I need to use R studio to model the following problem: According to the Independent newspaper (London, March 8, 1994), the Metropolitan Police in London reported 30,475 people as missing in the year ...
0
votes
1answer
109 views

For Matching on a categorical variable with N categories, will it suffice to create (N-1) binary features and match on them?

I have data on patients who received different amounts of Occupational therapy (High Dose vs Low Dose) after a stroke. We are investigating if there are differences in recovery between patients from ...
0
votes
1answer
29 views

Correlation between a continuous and multinomial variable [duplicate]

I would like to find the correlation between a continuous (dependent variable) and a categorical (multinomial) variable. I found that the appropriate test is Eta ($\eta$) coefficient, however, I haven'...
0
votes
0answers
24 views

Can someone explain the answer this question about Apriori?

Consider the following set of frequent 3-itemsets: {1,2,3},{1,2,4},{1,2,5},{1,3,4},{1,3,5},{2,3,4},{2,3,5},{3,4,5}. Assume that there are only five items in the data set. List all candidate 4-...
0
votes
0answers
19 views

When to use a multicategory logit model versus a loglinear model?

Do you only use the baseline-category logit model when categorical responses have more than 2 categories? How is this different than the loglinear model, which is useful when at least 2 variables in ...
3
votes
1answer
40 views

Chi-square goodness of fit with few categories

I am trying to compare observed proportions to expected proportions. To me, they seem quite different but chisq.test stubbornly returns fairly high p-values. I ...
0
votes
1answer
32 views

Do we need a reference dummy variable for non-mutually exclusive groups?

I am trying to build a GLMM and have converted a group of factors to dummy variables. Many have multiple groups and I would like to test the interactions between them as well. Do I need a reference ...