Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

Problem: How many 'timetables' can be created for visiting 8 different lectures without time clashes?

Apologies for the poorly worded question but it really requires more explanation than can be done with one line. I have a statistics problem, or rather, a timetabling problem that I feel can be solved ...
1
vote
1answer
17 views

How to model counts of a categorical variable?

I'm interested in assessing the impact of various covariates (age, sex, Charlson comorbidity score, etc.) on the incidence rate of a pulmonary event. However, the event is not binary. Each patient ...
0
votes
0answers
15 views

Variable importance Plot for a categorical variable in R [on hold]

The input variables for training random forest algorithm are given in the table. From the research article Random forest based hourly building energy prediction In that day type, workday type and time ...
1
vote
1answer
20 views

What statistical tools can I use to evaluate class comparison over a categorical variable?

I'm a noob in statistics so forgive me in advance for misusing some concepts. I've constructed an analysis counting a categorical variable over 1 million records and got the results below: ...
1
vote
0answers
9 views

Chi-Squared test or another? 16 subjects, 133 comments divided into 2 dichotomous categories

I have 16 subjects that rated and commented on two essays (essay 1 and essay 2). I have categorized the comments into 2 dichotomous categories: 1. Non-vocabulary VS Vocabulary comments (basically ...
0
votes
0answers
16 views

Multiple regression: Interpreting three-way interaction with two categorical variables and one numeric (in R)

I have two quick questions. I’d like to confirm that I’m interpreting correctly one of my coefficients from a 3-way interaction in a multiple linear regression model. The summary of my model is below. ...
0
votes
0answers
12 views

WoE of test dataset

How to encode the categorical data to Weight of Evidence in the test dataset? I am interested to know about how to handle the categories which are not present in the training set.Or should we combine ...
0
votes
0answers
9 views

Comparing two groups (nested) and differences between multiple dependent variables (nominal and continuous)

What is the best method to compare two groups in this situation? For example, lets say I want to compare and find differences between men and women. The independent variables can be nominal (own a car,...
0
votes
0answers
7 views

Classify a vector with M values each drawn from a different categorical distribution

I have a classification problem that is formulated as follows. Each observation belongs to one of $N$ (unknown) classes in $C = \{C_1, C_2, \ldots, C_N\}$ Each observation is an $M$-length vector $O =...
0
votes
0answers
9 views

(Title might mislead you) Balancing the bias of a categorical variable

I am working on data set that has the price of used cars and some features and I am trying to analyze how these features affect the price. One of the features is car brand which has a huge effect on ...
0
votes
1answer
25 views

Does it make sense to scale categorical variables in glmer when they have three levels?

I am trying to fit a generalised mixed effects model, but I am having convergence problems. The model I want to fit is ...
0
votes
0answers
18 views

Classification with ONLY categorical data

Suppose I have a table with some factor characteristics of some plants. For instance, petal color, pollen color, and so on. What is the best way to classify that data? Is it feasible to use some of ...
0
votes
0answers
12 views

Optimization to search connected components with a cloud of points (2 Dimensions) and a distance D [closed]

I'm searching a way to optimize this problem: In entry : a list of point (Python List) , an integer D. I have to search all the connected components knowing that a point is theorically linked to ...
0
votes
0answers
10 views

Using categories instead of WoE values

As for as I can understand, the Weight of Evidence strategy is the following: For continuous independent variables : First, create bins (categories / groups) for a continuous independent variable and ...
0
votes
0answers
6 views

MCA output analysis

I am quite lost on how to interpret the output of an MCA analysis. What does a the output of $var$v.test, $var$contrib, $var$cos2 and $var$coord mean respectively? In addition, I don't quite ...
0
votes
1answer
25 views

Categorical feature with one dominant value [closed]

in my dataset for machine learning I have many categorical features with one dominant category as you can see on the picture. How can I deal with this kind of categorical data in preprocessing?
0
votes
1answer
7 views

Comparing categorical (demographic) data from two surveyed populations

I feel like this should be easier to answer - and maybe for someone else it is, but I don't do a ton of statistical work. I'm comparing two different surveyed populations - one larger than the other -...
1
vote
1answer
23 views

Will a transformed categorical dataset lead to different results?

Suppose we have a dataset, where Y and X are categorical. Y can only take the value 0 or 1. There are two ways how to represent the data (where of course Color and Shape will be factorized i.e. blue = ...
1
vote
0answers
25 views

Bayesian logistic regression: mixed categorical and continuous predictors

I'm trying to model the probability of an event Y based on three independant variables, one (X) is continuous (a log count) and the others (A and B) are categorical (nominal). B is a subcategory of A. ...
0
votes
1answer
37 views

General Linear Model applied to binary data

So here I am studying regression analysis. As an assignment, I have been asked to obtain some binary data, simulate its behavior from some sample of it and apply the resulting general linear model to ...
0
votes
0answers
16 views

Descriptive and Hypothesis testing of quiz results

I'm doing some research on preconceptions and teaching-learning outcomes on a group of adult students going back to finish secondary school. I thought it would be an opportunity to test some ...
-1
votes
0answers
13 views

Multiple correspondence analysis usage with K-modes

Hi I plan to cluster a categorical survey data set with 30 questions (5 answer choices to each). I am a bit confused about whether MCA is really needed? I would be able to cluster using the K-modes ...
0
votes
1answer
12 views

The effect of a lack of dose-response results on odds ratio

This is part of a quantitative reasoning assignment I was working on. The study hypothesized that exercise may reduce the risk of disability for activities of daily living(ADL). However after ...
0
votes
0answers
16 views

Unequal sample size for 2 proportion calculation group

I have a question. It’s about the uneven sample size between 2 groups. Let say I want to compare & analysis these 2 groups when 1 of them have small number of sample. To give you some light, here ...
0
votes
1answer
17 views

h2o glm tweedie for categorical variables

To build a tweedie glm for categorical variables, the document suggested that I can use data['variable_name'].asfactor(). However, in the model output, there is no reference level, i.e., if I have ...
1
vote
1answer
30 views

Write the null hypothesis for nested model test in algebraic form

The reduced model is: lm(y~Age+Sex, data = df); The full model is: lm(y~Age+Sex+Age*Sex, data = df). (...
2
votes
0answers
8 views

How to set up contrasts in a linear regression models that involve averaging over levels of another factor?

For simplicity, assume we have a linear model which looks like this: Outcome = beta0 + beta1*Treatment + beta2*Time + beta3*Treatment*Time + error where ...
0
votes
0answers
29 views

What kind of statistical test should I be using for this data? [closed]

The following data were taken from a clinical trial where an experimental treatment was compared with an existing treatment for severe acne. Five hundred eighty eight individuals with severe acne were ...
0
votes
1answer
27 views

mgcv::gam(). ANOVA decomposition of a factor-by-variable interaction

Suppose: y is a continuous response variable. z is a factor variable, and x is a continuous variable. For example, ...
0
votes
0answers
20 views

Regression Discontinuity with binary / categorial outcomes and covariates

I want to conduct a regression discontinuity analysis on various outcomes and covariates. Some of the outcomes and almost all of the covariates of interest are binary. Furthermore 3 of my dependent ...
1
vote
0answers
26 views

Is there a theoretical basis for using partial least squares with categorical responses

I am using what is called PLS-DA in JMP to find a model for predicting a categorical (Positive/Negative) response. The documentation says that the responses are simply coded as 0/1, thereby ...
0
votes
0answers
20 views

How to deal with a potentially multiple categorical variable

I'm building a model that has, as inputs, some categorical variables. I had already dealt with this sort of data before, and applied different techniques as creation of dummy variables and factor ...
1
vote
1answer
36 views

How to Interpret p-value for categorical variable in multiple linear regresion? [duplicate]

I have a query on how to interpret the result for multiple regression with categorical variables. I have categorical variable called Stay_In_current_city_years which has 5 levels. After running the ...
0
votes
1answer
14 views

Is this variable suitable for a categorical regression (multinomial logistic regression)?

I have created a dataset starting from a series of multiple choice (3 choices) questions. ...
1
vote
1answer
23 views

In the summary of output of the regression analysis in R, is there a way to display categorical variable with just one coefficient [closed]

I am doing a linear regression analysis in R with logarithmic dependent variable. One of the control variables is categorical and describes an industry. There are 6 industries and thereby R ...
1
vote
0answers
26 views

Strange encoding for categorical features

I am reading through https://arxiv.org/pdf/1609.06676.pdf which presents an extension of the isolation forest algorithm so that categorical features may be taken into account. On page 5, the authors ...
0
votes
0answers
38 views

How do you run a regression when categorical variables may be involved, using R?

I have a data set with several categorical and quantitative variables. Say A, B, and C are categorical with several levels, X and Y are quantitative. I know that X ~ A will basically just be a ...
0
votes
1answer
24 views

Can eta squared be used for comparing effect size of a categorical (>2 categories) and continuous variable?

I have a linear model with both continuous and categorical (>2 categories) variables. I am aware of other statistics (e.g., AIC sum of weights and lmg from R package relaimpo) that can be used to ...
1
vote
1answer
27 views

How to “choose” categorical variables which have impact in a regression?

I have a dataset of about 50K samples. I have approximately 90 columns which are all categorical and they're used to predict a price. There's no other continuous value. I'm trying to select "which of ...
0
votes
1answer
19 views

Partitioning Around Medoids: Choosing a cluster number larger than the “optimal” one?

I asked a number of 71 'experts' to sort 92 different psychological constructs based on their similarity. Based on their answers, I constructed a dissimilarity matrix. Initially, I wanted to analyse ...
0
votes
0answers
23 views

Logit regression: Treat binary indepedent variables as continuous or as categorical for the marginal effect?

I have two logit models: A standard binary one (y=0/1) and an ordered logit model (y = yes, definitely/yes, maybe/no, probably not/no, definitely not. Now, to get the marginal effects of the binary ...
0
votes
0answers
33 views

including dummy variable in SEM

Let us consider a regression model $y_i = \alpha+\beta x_i + \gamma d_i + u_i$ where $y_i$ and $x_i$ are scalar continuous variables and $d_i$ is a dummy variable that takes 0 or 1. (this is just a ...
0
votes
1answer
29 views

How do I show that a continuous variable is a predictor of categorical variable that takes the value of 1 or 0 using R

I want to perform a test to see if the continuous variable is a predictor of the categorical variable. More information: I was given identifier IDs with corresponding dichotomous values (Call it CD, ...
14
votes
2answers
1k views

Is going from continuous data to categorical always wrong?

When I read about how to setup your data, one thing I have often come across is that transforming some continuous data into categorical data is not a good idea, since you may very well make the wrong ...
0
votes
0answers
4 views

Advise on how best to categorize unlabeled normalized continuous data set

First, apologies if my ignorance leads me to misstate anything or frame my question poorly. Let's start with the data set I have available. I have a table with about 200K+ salespeople's ...
1
vote
1answer
31 views

Tricky categorical data

I am trying to predict damages for accidents with a different number of injuries per accident and each injury could be one of many different types. For example, one person may have five injuries: an ...
2
votes
2answers
31 views

Categorical data of 2 by 2 table

I am trying to compare expert and Novice perceptual differences about Apple watch features. The data contained Negative and Positive viewpoints. ex. Data for design feature: Novice : Negative (9) ...
0
votes
0answers
17 views

ANOVA does not produce results only dots

Question: I am trying to use an ANOVA on the following variables, but the results are only dots. How come? Dependent variable: grades (0, 1) where 0 = fail and 1 = pass Independent variables: ...
1
vote
0answers
42 views

Goodness of Fit test for Logistic Regression Model

Data have been collected for 176 students. The response variable is 'Choice of Career' having 2 categories namely 'Academic' and 'Non-academic'. I have taken two explanatory variables namely 'Gender'(...
0
votes
1answer
10 views

What is the frequency for each level of categorical variables to obtain the most reliable results?

I'm working with a real dataset. In some variables, the frequency between each of the variables is not uniform. For example, in the Occup variable, the frequency for levels 2, 3, and 6 is very small. ...