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
1answer
19 views

which hypothesis testing model to use for binary data

I have a dataset that contains 20000 chess matches. I hypothesize that 'is white more advantageous?', and there are features like standard match time of each match and the number of turns in each ...
0
votes
0answers
11 views

Looking for a non parametric test for a continuos variable by two categorical variables (one with greater than 2 levels)

I have two categorical variables (one with greater than 2 levels(let's call this Categorical.variable1) and one with 2 levels (Categorical.variable2) and a continuous variable. I want to test my ...
1
vote
1answer
24 views

Correlation between two constant variables using the different approaches [duplicate]

Let's say we have a vector X = (1, 1, 1) and Y = c(2, 2, 2). I want to calculate correlation between those. Taking Pearson ...
0
votes
0answers
6 views

Recoding income variables in trends analysis

I will greatly appreciate your advice. I will like to control for family income in my analysis of trends in self-rated health between year 2000 and 2018. The NHIS data from IPUMS that I'm using has ...
0
votes
0answers
5 views

Probability of samples of discrete distributions having overlap

Let's say I have $k$ discrete categories in distribution $p$, and $m$ samples of size $n$ are taken from $p$. How can I calculate the probability that there are at least $r$ common categories across ...
0
votes
0answers
17 views

Importance for individual levels in an Ordinal Feature [closed]

I'm building a binary classification model using a Random Forest Classifier I have several feature types including some features that are ordinal. I am aware with various feature importance methods (...
0
votes
0answers
12 views

Using Numeric and Categorical Factors from Factor Analysis as input in a Linear Discriminant Analysis

I have a dataset which few quantitative variables and a higher number of categorical values. Would it be wise to perform two different factor analysis on both data types? (i.e., a factor analysis (FA) ...
0
votes
0answers
17 views

How to find out what is the best predictor in a data set? [closed]

I have a dataset similar to this example Salary Goals Assists Age 100000 32 10 22 50000 12 2 25 I would like to find out which variable best predicts the salary. I tried with some regression ...
0
votes
0answers
11 views

When is it admissible to combine two categories?

In a data mining project, I have a categorical variable $C$ which takes possible values $c_i$ and the outcome variable is continous. When I plot the conditional probability distribution of the outcome ...
0
votes
1answer
53 views

Converting Categorical Data to Numerical by Sampling

Suppose I had sampled $1000$ individuals from a population in order to learn about two different questions, both of which had categorical, binary answers. (For the sake of this hypothetical, let's say ...
1
vote
0answers
7 views

Can proportional reduction in error (PRE) tell if respondents picked the same item (political party) in two subsequent elections?

I would very much appreciate your input on a problem and insecurity I have, and would be happy for further suggestions. What I am trying to find out is how much different generations vary in their ...
1
vote
0answers
30 views

Dummy variables and the weekend effect

I am running a regression to see the well documented "weekend effect" in the stock market. The weekend effect is a phenomenon in financial markets in which stock returns on Mondays are often ...
0
votes
0answers
6 views

Statistical Measure to Analyze Product Switch between Categories

I have a list of products that change their price categories on different timestamps. As an example consider a price time series ...
0
votes
0answers
20 views

Principal Component Analysis & Factor Analysis on Mixed Data Set

I'm currently doing work on a cars.data set, which was downloaded from Craigslist in the United States. First of all, there are a ton of outliers and generally, the data set is pretty subjective, as ...
0
votes
0answers
15 views

Label-encoding nominal variables

I am aware of the practice that label encoding is preferred for ordinal variables while ...
1
vote
1answer
22 views

Categorical independent variable and binary dependent variable

Which test can I use for analyzing the effect of a categorical independent variable, such as preoperative ASA score (1/2/3/4), on a binary dependent variable, such as postoperative complication (yes/...
2
votes
2answers
52 views

How to measure variability of categorical time series?

I have a list of categorical variable time series. For example A, A, A, A, A, A, A, A, A A, B, C, A, B, C, C, C, A A, Z, D, X, Y, T, A, A, F C, D, C, D, C, D, D, C, C A, A, A, A, B, A, A, A, A A, A, ...
0
votes
0answers
20 views

categorical dependent and independent variable

I am interested in investigating the impact of the localization of malignant lung tumors on the pattern of lymph node metastases. The localization of the lung tumor is a categorical independent ...
2
votes
1answer
25 views

Ordinal variables in logistic regression

I am working with a data set with 3000+ rows. The response variable p is binary (1 representing purchase of a specific item, 0 representing no purchase) and I have ...
1
vote
0answers
40 views

Benford's law for categorical variables?

I have a dataset on avoided maritime accidents (near-miss) that looks like this: [ All variables are categorical (type=1-3, position=1-5, area=1-5, risk=1-7, 4 columns, 525 rows - every row is 1 near ...
0
votes
0answers
28 views

Multiple (five) categorical dependent variables? (psychiatric disorders)

I have a big dataset (N=700) of individuals that can have five different psychiatric disorders. There is overlap in terms of this disorders, i.e. some individuals can have more than one psychiatric ...
0
votes
1answer
27 views

Does the assumption of autocorrelation apply to linear regression with a categorical predictor?

[Edit:] My question concerns the use of a categorical predictor in linear regression specifically. Some of the assumptions for linear regression include: normality, ...
0
votes
0answers
21 views

Interpreting Exponentiated Categorical Variable when Dependent Variable is Log Transformed

I have data on childcare costs and different characteristics of the child. Boss decided it was right to log transform the dependent variable (total annual costs) in all districts, so I must too. We ...
0
votes
1answer
47 views

How to test assumptions with a categorical predictor (planned contrasts) in linear regression?

I am using regression with planned contrasts and would like to test statistical assumptions. Assumptions are normally tested on the residuals of the regression model, but in this case, I don't know if ...
0
votes
0answers
12 views

Linear model with factor variables

I am analyzing some data containing numeric and factor variables in R, factor variables have two levels. To my surprise, there is interaction between one numeric and one factor variable on both levels ...
5
votes
1answer
83 views

Why the confidence intervals in a categorical lm() are not calculated at the group level?

This is probably very easy but I could not find a straightforward answer. reproducible example ...
1
vote
0answers
28 views

Association Between Two Categorical Variables in R [duplicate]

I have been trying to calculate the association in R between two categorical variables—level of education and political party voted. I have 8 choices for education and 8 choices for political parties. ...
0
votes
0answers
28 views

Confidence intervals for frequencies with unknown distribution

I am working with survey data with a lot of observations (>10000) and mostly categorial variables. For some of these categorical variables, I need find confidence intervals for the frequencies with ...
1
vote
1answer
31 views

Interpreting results of a regression with categorical variable

I am running regression on a dataset with 3 variables: n (an integer), Type (a categorical with levels A, B or C) and value (a numeric). The result of ...
1
vote
1answer
35 views

Interpretation of Gradient and Hessian for Categorical variables in Gradient Boost

Before searching for split points LightGBM sorts categories withing categorical features by: $\frac{\sum_{i=1}^{n} 1_{x_{i j}=x_{i k}} g_{i}}{\sum_{i=1}^{n} 1_{x_{i j}=x_{i k}} h_{i}}$ Where $g_i$ is ...
0
votes
1answer
13 views

Tukey Test and Linear Regression

Say there are four groups, (a,b,c,d), for one feature in a dataset with many features. I am trying to predict a numerical feature y. I perform the Tukey test and find that the means of y for groups a ...
0
votes
1answer
41 views

How to analyse count data that include 0 as a category?

I'm testing the yield of corn subject to two treatments: Temperature (Cold and Warm) and Light Color (Red, Blue, Natural.) The number of plants per plot that produced no cobs, one cob, two cobs and ...
0
votes
1answer
16 views

How can I get correlation plot between survey responses (R)?

I am performing an analysis on a survey response with answers like(most likely, not at all,a lot). I want to see correlation between responses of two columns. For eg, does "a lot" of one ...
1
vote
0answers
27 views

Quantile regression categorical data

I am planning to do an analysis on socio economic determinants of women health status. For health status, being my dependent variables, I have taken anemia as one of the variable. I want to do see ...
0
votes
2answers
31 views

Can we use the overall F test from a regression to explain the effect of a categorical model?

I'm fitting a linear regression model where the continuous variable is "Score" and there are two independent variables: Continuous variable "Age" Categorical variable with 3 ...
0
votes
1answer
18 views

How to handle the dummy variables with overlapping categories?

Background of The Question Let's say, I have four categories (A, B, C, D). Considering one (D) as a reference variable, there will be three categories on which I have to work. But the problem is one ...
1
vote
0answers
15 views

Repeated Measure (Within-Subject Design) with Categorical Dependent Variable

I've made a study using a within-subject participant design. There are 3 conditions that each participant sees (2 stimuli per condition) and the dependent variables are one of four categorical options ...
0
votes
0answers
5 views

Statistical test to determine effect of intervention on categorical response variable

I measured the response to stimulus X in people that underwent an intervention or not and I'm interested to determine the effect of treatment (intervention vs control) on the type of response. ...
2
votes
2answers
40 views

Numeric variable with outliers as a categories

I'm working with a dataset that has a few variables that I'm having difficulty trying to preprocess. So one of them is called MENTHLTH where it is a numeric variable. The point of the variable is to ...
0
votes
1answer
40 views

Correlation between categorical data [duplicate]

I gave a questionary to 190 people to answer some questions. I want to check the correlation between the annual salary and how satisfy people are. So my two variables are annual salary and ...
0
votes
1answer
12 views

Further breakdown of a dummy variable for regression analysis

I would like to measure the athletic performance based on his smoking status. And in addition, I want to evaluate the difference between cigarettes and cigars. Smoker vs. non-smoker: S = 1 , if ...
0
votes
0answers
10 views

Would factorizing categorical features be appropriate rather than dummy coding? Also scaling

Would using factorized categorical features instead of dummy coding them be appropriate for use on models that rely on distance? Example dataframe: I have a column of continuous values, ...
1
vote
0answers
17 views

Normalizing a Categorical Ordinal Variable

I am trying to normalize my data in which I collected number of time people pick their hair and their stress level which ranges from 1 (no stress) to 5 (high stress) and try to create a graph in order ...
0
votes
1answer
21 views

How to analyze contingency table for multiple responses in SPSS or JASP?

I have two categorical (binary) variables: Gender (female vs. male) and 3 subject exams (English, Math, Science: Pass or fail). Everyone took all the subject exams (repeated measures). How can I ...
0
votes
1answer
57 views

Is it possible to model with a linear regression the relationship between a dependent continuous variable and an independent categorical variable?

I raised this question after a project that I made on DataCamp.com where a linear regression was trained to model the relationship between movie genre revenues (dependent variable) and movie genre(...
0
votes
0answers
36 views

What kind of variable is model year of a vehicle?

Model year doesn't necessarily indicate the calendar year it was manufactured in, so it isn't fully a measurement of time (except in a slightly fuzzier way than "calendar year of manufacture"...
0
votes
0answers
45 views

How to interpret crossover-interaction between continuous and categorical variable?

I am stuck with the interpretation of my model results. In the beginning I have tested my independent variables for correlation with Theil's U and left out correlated ones to avoid multicollinearity. ...
2
votes
0answers
34 views

Coefficient on a dummy variable

Suppose I have the following regression: \begin{align*} y=\beta_0+\beta_1A+\beta_2B+\beta_3C+\beta_4(A*B)+e; \end{align*} where $A$ and $B$ are dummy variables, $C$ is a continuos variable and $A*...
0
votes
1answer
27 views

Feature Selection -

This is my first time working on a dataset with this sort of complexity. https://www.kaggle.com/c/house-prices-advanced-regression-techniques I am thinking of trying to maybe use a logistic or linear ...
0
votes
1answer
11 views

Categorizing Date in a registry data base of cancer

I happen to work with a breast cancer database which is not available online. I want to follow these steps and report the results: Remove data of people who are young( less than 18 yo) and who are ...

1
2 3 4 5
60