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
2
votes
1answer
16 views

Exploring relationships between 88 dichotomous variables?

A little background, The dataset I've been given (to hopefully analyze) where a group of people have coded 288 music videos for the presence or absence of 88 different variables (e.g. band members ...
0
votes
2answers
22 views

Information about independent variables in poisson regression

Can independent variables in Poisson model, Negative binomial model and Hurdles model be categorical ?
1
vote
0answers
33 views

Differences between cumulative link models (ordinal) and multinom (nnet) for fitting multinomial data

I'm trying to understand cumulative link models and how they differ from multinom models in R. Here's a simple example of a multinom model and plot output using the nnet package: ...
1
vote
1answer
26 views

Logit model for hundres of items - can and should I use the items as a category variable?

I am in the early phase of a new project about looking at multiple factors that potentially influence the probability that an item fails quality inspection. I am interested in seeing whether each ...
0
votes
1answer
16 views

Correlation of factors in a variable

I have a categorical variable column that looks like this ID Item ------- 1 Apple 1 Orange 2 Apple 2 Pear 2 Orange 3 Apple I converted it to a wide ...
1
vote
0answers
48 views

Performing and interpreting a logistic regression using ordered variables in R

I'm currently working on my first larger project with self-collected data and only few guidelines. My dataset contains 29 variables, all of which are categorical and most of which are ordered (with 2 ...
1
vote
1answer
20 views

Categorical sampling without instantiating probability vector

I want to sample from a discrete distribution with probability vector $p \in \mathbb R^n$, where $n$ is large. Suppose that $p_i = f_i / Z$, where $Z$ is a normalization constant. I can compute the ...
1
vote
0answers
24 views

Do we use weighted or unweighted data when doing categorical data analysis?

Im quite confuse if I should use a weighted or unweighted survey data when doing categorical data analysis such as Chi-square, G2, concordant or discordant analysis, etc. Basically, these analyses ...
0
votes
0answers
13 views

Appropriate statistical test

For the data in image can anyone please suggest the right statistical test. Want to test if brand preference depends on income level. The percentages adds upto 100% row wise meaning the values in a ...
1
vote
0answers
17 views

How to impute a categorical variable with MICE but prevent it from taking some values?

I have a categorical variable, var1 , that can take on values of W, B, A, M, N or P. There are some NAs that I want to impute using the mice package in R, but I know that the missing values cannot be "...
0
votes
0answers
28 views

Another solution than McNemar test for bilateral asymmetry on binary data?

Let's say I studied the shoulders of 10 individuals, and I scored the presence/absence of a criteria (ex: arthrosis, presence=0;absence=1) on the left side and the right side. I need to test the ...
0
votes
1answer
9 views

Can you use k-modes on mixed types?

This question is for using clustering for EDA in a structured dataset. My understanding is that k-means does not do well with categorical data because it cannot interpret means of non-numerical data. ...
0
votes
0answers
10 views

Compute a Penalty reward/KANO Model in regression setting

I have a dataset with a dependent measures like customer satisfaction (1 = very low, 10 = very high) and some independent measures like good price (1= true, 5 = false), wide product selection (1= ...
1
vote
1answer
32 views

How to instrument categorical dummy variables

Suppose that X is a categorical variables for 4 possible regions. Suppose that we want to evaluate the effect of X on an outcome Y, but we believe X is correlated with unobservables. I separate ...
0
votes
0answers
8 views

Can class imbalance decrease the value of a coefficient of a dummy variable?

I modeled monthly electricity consumption as a function of summer and other regressors. summer is a dichotomous variable that is ...
0
votes
1answer
45 views

visualisation of categorical variables

Can anyone help me how to plot/visualise 2-3 categorical variables all togehter at the same time. I have 4 different categorical variables each with 4 levels. I want to visualise the first 3 variables ...
0
votes
0answers
33 views

Encoding Ordinal categorical data using Python

I am trying to encode ordinal data. I found a post which suggests a way to do it. Where to find a guide to encoding categorical features? This seems to make sense. For nominal data, I would do the one-...
2
votes
0answers
39 views

chi-square when the cells are not independent

Imagine an experimental setup as follows: 30 subjects each make three preference judgements: they choose a color for each button shape. So, the raw subject data could look like: ...
0
votes
0answers
18 views

Wich analysis should I use for 2 or 3 ordinal predictors and 2 nominal outcomes?

I´m actually a bit confused.These are my variables: -->predictor Variables: Ordinal Variable X (Low-high), Difficulty (low-middle-high) -->control Variable: Confidence (low-high) -->outcome Variables:...
0
votes
1answer
19 views

Estimate the effect of dummies with unbalanced data

Imagine having a factory with jobs of different complexity, and a few machines that can execute these jobs; a job can succeed or fail. However, jobs are not assigned completely randomly, there is some ...
5
votes
2answers
123 views

Why am I getting a different intercept in my regression model with categorical variables when I let them interact?

I'm comparing two regression models in R. Both use the same categorical variables the only difference is that in one I allow them to interact, the other I don't. ...
1
vote
1answer
26 views

How can one model the density of a distribution of choice?

I'm a bit new to stats, so I may be missing some fundamentals. I'm interested estimating the density of a discrete distribution, so that I can obtain the probability of an unseen outcome. I have ...
0
votes
1answer
23 views

Relationship between two categorical variable

I'm trying to check a relationship between two variable. one with three levels and other is with 7 levels. one variable is ...
1
vote
0answers
26 views

Interpretaion Of ordinal logistic regression

I have one variable overall_sentiment with (Positive, Negative, Neutral) three levels. I have one more variable comments_created_at with (Monday, Tuesday, Wed, Thu, Fri, sat, sun) 7 levels. I have to ...
0
votes
0answers
7 views

Exhaustive Bipartition Search (Specific to light GBM or Catboost)

After searching extensively I am unable to find a detail explanation and clear example of how exhaustive bipartition search is used by LightGBM (light gradient boosting) as an 'optimal' solution for ...
0
votes
0answers
17 views

How to use ICC(intraclass correlation coefficient) to test the correlation between categorical and numerical variables?

I have a dataset with both numerical and categorical variables.I'm trying to test the correlation or say, strength of association between these two kinds of variables. I already tried the eta and eta ...
0
votes
1answer
133 views

Isolation forest with categorical data?

I understand how isolation forests can work with numeric data, but I wonder how it can work with categorical data? Also, at least when working with Sci-kit-Learn, the recommendation I saw was to ...
1
vote
3answers
86 views

Cluster categorical data (survey data)

I have a dataset containing around 800 observations: It's a dataset collected via a survey; each row is a dataset filled with information re. diet habits, physical activity, the fact of taking ...
0
votes
0answers
23 views

How do I combine the categories of a classification system to find the maximum reliability?

I described my study design in another question. Briefly, I recruited 16 unique raters to classify 35 items according to a seven-category classification system. I measured the interrater reliability ...
0
votes
0answers
29 views

Question about collinearity interaction

I'm running logistic regression for outcome on SBP (systolic blood pressure), DBP (diastolic blood pressure), BMI, and other covariates. Because SBP, BMI didn't show linear relationship with logit of ...
3
votes
1answer
64 views

How do you deal with factors, in factorial design, when some or all levels of a factor are meaningless for one or some levels of another factor?

( Introduction: My question is essentially neither about software nor about data preparation. It's about understanding a principle in statistics topic of factorial design of experiments. In reality I ...
0
votes
2answers
100 views

Overall significance of a categorical variables in logistic regression

I have seen two approaches in binary logistic regression with categorical independent variables (IV) with more than two levels. In one approach, a reference category for the IV is defined and the rest ...
0
votes
1answer
59 views

Hclust in R - Categorical data with multiple categories

I have a dataset with 266 observations with categorical variables of multiple categories. I am using the function hclust in R and the function ...
0
votes
0answers
14 views

How related are the categories of a categorical dependent variable

There is a set of numerical and categorical independent variables and one dependent variable that is categorical. Some of the categories are far to be related with the rest, but most of them are very ...
1
vote
2answers
16 views

How to test statistical significance of differences between before and after nominal data

I'm wondering what the best statistical test to run on my dissertation survey would be. I'm investigating letting agents attitudes towards the recently introduced tenant fee ban in the UK. A survey ...
0
votes
0answers
22 views

“CATEGORICAL” predictor that varies both within and across clusters

Page 13 of THIS ARTICLE (top of the page) recommends that if a continuous predictor varies both within and across clusters, a strategy is to break that predictor into two predictors by: (a) taking ...
0
votes
1answer
30 views

Interpreting a categorical feature's overall significance

There are several discussions with similar headings, e.g. overall effects of categorical variables or Overall Significance vs. Individual Variable Significance in Mutliple Regression or Categorical ...
2
votes
1answer
83 views

How to specify latent variables for SEM with lavaan [closed]

I would like to use lavaan for SEM. Specifically I want to use the paper: "Original Article Maximum Likelihood for Cross-lagged Panel Models with Fixed Effects", by Paul D. Allison, Richard Williams, ...
0
votes
1answer
31 views

The amount of variables used in SEM models

I would like to use lavaan for SEM. I am have however struggling to get things running (I went through al the examples, but they always deal with these perfect datasets). The only thing that has ...
2
votes
1answer
24 views

Creating a covariance matrix for SEM

I would like to use lavaan for SEM. Specifically I want to use the paper: "Original Article Maximum Likelihood for Cross-lagged Panel Models with Fixed Effects", by Paul D. Allison, Richard Williams, ...
3
votes
0answers
27 views

A goodness of fit test for two discrete distributions with unequal variance?

I have a computer simulation in which a virtual agent end up in different areas of a layout based on several factors. There are 18 conditions, so the data (you can find the csv file for a toy dataset ...
0
votes
0answers
17 views

Logit analysis of binomial response in contigency tables with > 2 categorical predictors

Is it true that in binomial count contingency tables that have > 2 predictors of the counts, the MLE estimates of logistic regression parameters can be calculated directly from table values (i.e. ...
0
votes
0answers
14 views

Intercept meaning in group lasso

I have a database with categorical and continuous variable. My response variable is dichotomous and the indipendent variables are 4 factors (2 of them with roughly 10 levels and 2 dichotomous) and 20 ...
0
votes
0answers
16 views

From multiple Bayesian BetaBinomial bandits models, to logistic regression

Suppose I have a single categorical predictor $X_1$ with K>2 levels, and a binary outcome Y. We have two objectives, in order of priority: Identify if there is level $k$ in $X_1$ that significantly ...
1
vote
0answers
22 views

Correlation between 1D spatial categorical variables

I have two sets of data, representing presence/absence variables which vary along an axis (N=1e6): position, value 1, present 2, present 3, absent 4, absent .. ...
0
votes
1answer
24 views

Categorical variable for Arima

Does Arima support the usage of categorical variable? Some ways to get it working can be using one-hot encoding to represent categorical variables, but I am not sure how good it is.
0
votes
0answers
32 views

How to treat missing values in a continuous variable?

I have a classification problem and I am doing the data analysis. I came across a variable which is numeric continuous and have some missing values. I checked the missing values and are real missing ...
0
votes
0answers
23 views

Best approach to an event detection classifier model

Probably my title is not as precise as I'd like it to, but bear with me, the problem is quite straightforward: I have daily time-series sales and stock data, from January to May, both in 2018 and 2019....
0
votes
0answers
39 views

How to tell if a set of MCMC chains mixed?

Let's say I have a Bayesian network with both numeric and categorical variables. I run several MCMC chains to collect samples from the distribution. Now, if the chains are "similar enough" after some ...
0
votes
1answer
24 views

logistic regression with conflicting results, so to speak

I was trying to duplicate values by running the same set of data, and my coefficients were different. there is one 0-1 dependent variable, and there are four 0-1 independent variables. I found out ...