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

Ideas for categorical data when analyzing OECD's Better Life Index [closed]

This is a really rookie question, but bear with me. I am statistic student and I am trying to do a project for school using the Better life Index data. I have got to the part where I need to do ...
0
votes
0answers
10 views

What statistical test will measure if a binary variable is significantly different between groups? [closed]

Number of classes/categories/groups: A = weight ≤ -3 B = -3 < weight ≤ -2 C = -2 < weight Number of observations: ~100 observations Number of features: ~20 features that are each binary (0=...
3
votes
1answer
35 views

Post-hoc t-tests for ANOVA

My sociology professor said that when performing multiple t-tests between two groups after the ANOVA f-test, the likelihood to make at least one type-1 error adds up by 5% with each t-test. So for one ...
0
votes
1answer
27 views

Can I apply PCA on continuous data and reduce the dimensions and keep categorical data as it is?

I have a dataset which contains 95 highly correlated continuous variables and other 3 categorical variables. I want to reduce the dimension of the data and by that I can deal with correlation as well. ...
0
votes
0answers
20 views

Machine learning classifier with only categorial predictors [closed]

I have a data set with a binary outcome variable and only binary dummy predictors. Which are the best algorithms for this type of classification task? Is there a code for plotting the results (i.e. ...
1
vote
0answers
12 views

Exploratory Factor Analysis (EFA) within a CFA framework in R: How to select anchor items?

In cases, data is ordered categorical, exploratory factor analysis (EFA) is best implemented using polychoric correlations and diagonally weighted least squares (for example, see here). To my ...
0
votes
0answers
10 views

Dealing with missing levels in categorical variables when batch scoring in Python [closed]

I have encountered a unique problem. My model was trained on DNN framework and the model parameters are saved which I'm using now to score the data. Since my data is quite huge, I'm scoring the data ...
0
votes
0answers
12 views

Multilayer Perceptron with XOR Dataset

so I got this working code for a multilayer perceptron class, which I'm training on a XOR dataset (plot 1). As activation I'm using the hyperbolic tangent. After 50000 training epochs using SGD, my ...
0
votes
0answers
13 views

Listing factors and their corresponding R for a dataset [closed]

I have a dataset (Skewed Left) with customer survey scores and then a mix of mainly categorical and some numerical features. I am attempting to see how any of these features correspond to the ...
1
vote
0answers
20 views

Categorical variable from continuous variable: should I aim for the same number of observations?

I am converting a continuous variable to a categorical variable with the aim to use it as a factor in an ANOVA test. Having to decide if each level of the factor will include the same number of ...
1
vote
0answers
34 views

Autocorrelation for a categorical time series

I am having trouble to compute the autocorrelation for different lags in a categorical time series. For instance, consider 3 possible categories: classA, classB and classC, and a vector x representing ...
0
votes
1answer
20 views

What Chi Square test should I use?

I am attempting to assess the ecological validity of an animal testing procedure as follows: I have notated x number of events that occur in the wild. During each event, the speed of the animal is ...
0
votes
0answers
12 views

Bootstrap hypothesis test of sample difference for a general function f(x)

I have two samples, $x$ and $y$. $x$ is generated from the multinomial $Mult(n_x, \pi_x)$ and y from $Mult(n_y, \pi_y)$. I am interested in the quantities $f(\pi_x)$ and $f(\pi_y)$. Specifically, I ...
0
votes
0answers
15 views

multivariate analysis with mixed numerical and categorical dependent variables

I have one independent variable (yes/No) and several covariates (sex/age and so on..), five dependent variables (four continuous, normal distributed and one categorical as yes/no). I want to look up ...
1
vote
1answer
24 views

What statistical test should be performed in this setting?

I am analyzing a dataset. There I have 3 different "Lab test report findings" and 1 "clinical findings" which is obtained by the clinical examination of the patient (most of the time this clinical ...
1
vote
0answers
25 views

Chi square for pass fail survey test

I am trying to perform a statistical test on a survey I did. From my search, I found that Chi-square is the appropriate statistic for such data in the form of pass/fail. The test basically is 3 ...
1
vote
1answer
37 views

Logistic regression model that has one categorical variable with multiple values

I have the following data: ...
2
votes
1answer
21 views

Acute kidney injury statistical tests

I am fairly new to statistical analysis and was hoping to get some advice on an analysis I am hoping to run. I have data for children with acute kidney injuries (AKI) classified as a multilevel ...
1
vote
0answers
15 views

Correlation of categorical data to binomial response in R

I'm looking to analyze the correlation between a categorical input variable and a binomial response variable, but I'm not sure how to organize my data or if I'm planning the right analysis. Here's my ...
0
votes
0answers
21 views

How does decision tree divide numerical feature? [duplicate]

As Shown in above decision Tree, sklearn's DecisionTreeClassifier divide numerical features to create decision tree. Petal length feature has following properties: ...
0
votes
0answers
7 views

Recursive Feature Engineering with Categorical and Continuous Variables

I'm trying to determine what to do with categorical feature when using recursive feature selection. I've looked around this forum and elsewhere and most discussions focus on one-hot-encoded features ...
0
votes
1answer
20 views

Comparison of categorical variables with 3+ levels between two groups

Apologies if this is a simple question, but I can't seem to find an answer. I'm hoping to compare two categorical variables, one with 2 levels and another with 6, summarised here: ...
0
votes
0answers
17 views

Can I treat my continuous variable as a categorical variable?

I know that there many dangers and disadvantages of treating a continuous variable as a categorical variable. However, I also read in some cases it is applicable (e.g. when the relationship is non ...
1
vote
0answers
7 views

BERT for non-textual sequence data

I'm working on a deep learning solution for classifying sequence data that isn't raw text but rather entities (which have already been extracted from the text). I am currently using word2vec-style ...
0
votes
0answers
15 views

Average of importance gain for a categorical variable

Suppose I have a set of M categorical variables, some of them with a different number of categories (for instance, var1 has five categories, var2 has three, etc). I train an XGBoost model on a numeric ...
0
votes
0answers
15 views

Categorical variables

i have a panel data set. my dependent variable is total costs. and almost all of my independent variables are Categorical variables. like age is "old","new" now i have some questions. 1-should i use ...
0
votes
0answers
25 views

Ordinal regression, categorical variables, and “step” function

I am doing an ordinal regression analysis using "polr" function. I got a result of the regression analysis and continued to use "step" function to find the final prediction model. As all my variables ...
0
votes
0answers
13 views

Likert Scale / Chi Squared Test / Pre-Post Design Question

Super junior stats person here. I have a dataset I am looking to analyze properly. I have administered 2 surveys, one pre and one post. They may or may not be the same participants (was distributed ...
0
votes
0answers
21 views

Remarkable behavior of logistic regression solvers

I wonder what causes some strange behavior of LogisticRegression's solvers in the following model: For some reason, all of them except liblinear predict only 0s. Their loglosses are equivalent, ...
0
votes
0answers
17 views

best subset of moderators for meta-analysis in R

I have a large number of "categorical" moderators (35 moderators). I am planning to use the best subset of these moderators that can maximally explain the variation in my 257 correlated effect sizes ...
0
votes
3answers
46 views

How can I check if nominal and ordinal data is normally distributed (for z-test of proportions)

This section deals with concepts and procedures for testing inferences about proportions that involve the normal distribution. Following a discussion of the concepts related to tests of ...
3
votes
1answer
46 views

Testing differences in variance between groups

I have a hypothesis that a particular intervention/treatment will cause more variation in participant responses to a particular question. The intervention variable is categorical, with five different ...
0
votes
0answers
8 views

Measuring distribution/concentration across categories [duplicate]

i'm trying to represent concentration/distribution across a set of categories. Specifically these are job types, e.g. tourism, manufacturing, transport, education. Let's say there are 10 job types ...
0
votes
0answers
5 views

Best way to establish effect sizes in high-dimensional model with mixed data

I have 4 categorical variables, one is by state so it has 50 possible values. I also have 3 continuously distributed values. I'm trying to predict a continuous variable. I'm using a random forest for ...
0
votes
1answer
26 views

Does it make a differences to a prediction model if a factor is ordered or not?

I want to build a prediction model where one predictor variable is a score of roman numeral I, II, III, and IV. I am using R and I currently store this feature as factor. This, however, is not ...
2
votes
1answer
24 views

IPTWs for Multi-category treatment, how to handle a multi-category mediator

I have a multi-category treatment for which selection is adjusted for using IPTWs. My concern regards a multi-category mediator that occurs post-treatment, but which also co-occurs with the outcome. ...
1
vote
1answer
36 views

Splitting dataset with respect to categorical variable

Assume that we have a data set with some features and a goal is to perform a classification. Let's assume that a dataset is moderately large compare to the total number of features. Next, assume that ...
0
votes
0answers
27 views

What would be a good machine learning method for this case of music generation?

I want to generate musical compositions via machine learning and I’d like to know what statistical techniques could work. There are existing approaches that generate music of general interest, but ...
1
vote
3answers
47 views

Interpreting categorical variables in regression

When running a regression with a categorical independent variable, we get results for each level of the variable except for the base, which we can choose. Now I've always had a hard time on how to ...
1
vote
1answer
36 views

Effect of omitting interaction term on OLS estimators

Say we know that $Y$ follows the model $$Y = \beta_0 + \beta_1X_1 + \beta_2X_2+\beta_3X_1X_2+\epsilon$$ Suppose that $X_1$ is a categorical binary predictor, while $X_2$ is a continuous predictor that ...
1
vote
0answers
18 views

Slight confusion on independent vs dependent samples

If I have two patient populations with cancer and I'm comparing cancer sizes, so say cancer size 1, 2 and 3 in an ordered fashion. Would these samples be dependent or independent? In one way, these ...
0
votes
0answers
11 views

Improving a logistic regression model

I have a logistic regression model with one categorical predictor (four levels). The model does not fit well; I've used a Pearson's Chi Square Test and McFaddens Pseudo R squared to evaluate. I am ...
0
votes
0answers
9 views

Should I use contrast coding( or any specific coding) for factor predictor (condition) with 2 levels : “treatment” & “Control” in brms & lme4?

This is for hypothesis testing where my hypothesis states that the dependent variable has a higher value in the treatment condition. I'm doing it both in brms & lme4 to do a comparative study ...
0
votes
0answers
24 views

Categorical variables in regression model

I have a simple question that I cannot figure out. When specifying a regression model with categorical variables as an independent variable, it's possible to perform the coding in two ways. For a ...
0
votes
1answer
24 views

Chi square for presence/absence data?

Is it possible to do this with chi square? I have two groups of mice, one with a mutation in a gene and one without. I have analysed the presence/absence of organs in each group, and found that all ...
0
votes
0answers
23 views

Specify correct answer in Nominal Response Model (IRT)

Unlike in the dichotomous model, it seems that nominal models are oblivious to which choice is the correct answer at any given item. However, I'd like to make sure that, as $theta\to\infty$, the ...
2
votes
1answer
70 views

Finding trends in ordinal time series data

I am looking at patient data with clinical scores for each that run from zero to 6 (integers, where zero is best and scoring 6 on symptoms is worst). There are follow up scores on each patient (at ...
1
vote
1answer
41 views

What is the relationship between a quadratic model and categorical model?

Using logistic explore the association between lung reactivity and risk of chronic respiratory disease. The dataset contains information on a combined measure of lung function exposure respcat ...
0
votes
0answers
7 views

categorical variable based on self-report scale -cut-off values - social sciences

https://pdfs.semanticscholar.org/e994/335c7df90239e066203b5853fb55c3f1b498.pdf for this relationship closeness inventory, on the very last page of the article PDF, in appendix B: it's a 1 to 10 scale ...
0
votes
0answers
24 views

Which test is suitable in below situation?

I want to calculate the correlation of two continuous variables, unfortunately both of them are not normally distributed. (by using Shapiro-Wilk test) There are two categorical confounding variables ...