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

Confusion about non-significant interaction

I'm running a linear model with two binary independent variables, Group (1 and 2) and Condition (A and B). Both have p-values < 0.05. Looking at plots of my results, it looks like there should be ...
0
votes
1answer
11 views

weighted one-hot encoding

I am using one-hot encoding to transform my categorical variable. But it's not just a presence-absence situation. Consider the variable as a device that can have with different brands as well as ...
0
votes
0answers
22 views

Lottery task, ambiguity aversion, switching point …which analysis?

I have Ambiguity Aversion as Predictor. I have a lottery consisting of 10 choices, for each choice participants must say whether they prefer the risky lottery or the ambiguous one. So a the end I can ...
0
votes
0answers
13 views

Markov Chain predictive model combined with rare levels in sequential variable

I'm leveraging on an R packages named clickstream and markovchain in order to: create a Markovian Chain (model) which will be utilized to perform attribution between different marketing channels ...
0
votes
0answers
19 views

Interpreting results of multinominal logistic regression

I have run a multinominal logistic model with my dependent categorical variable, WINNING_PARTY, taking the following values: gov, corp, org, indiv, univ, or in part....
0
votes
0answers
6 views

Defining data types for variables before regression analysis

I'm fairly new to R, and getting confused on how to define some of the variables in my dataset. I'm preparing a multiple regression analysis based on survey data, with a continuous dependent variable ...
0
votes
0answers
31 views

Why do logistic regression standard errors vary depending on which variable is omitted?

I am trying to estimate the standard errors of the means of a binary outcome variable at different levels of a categorical variable using a logistic regression. However, these standard errors seem to ...
1
vote
1answer
28 views

Classifying nominal categorical data

This question is a follow-up to this one and is about Magic: the Gathering decks, specifically in the EDH/Commander (singleton) format: I have a group of samples (decks), each one consisting of 100 ...
3
votes
1answer
36 views

What statistical model can incorporate my categorical variable (2 levels) and 2 continuous variables?

I have some data which has a categorical variable (treatment) with 2 levels, control and 'mice added'. I have 2 continuous variables of plant density and elephant number/density. I have examined the ...
1
vote
1answer
25 views

How to improve Recall and Precision?

I am working on a big data set which has 25 features with 237862 number of rows. I am trying to predict return . 1 is for return and 0 for no return. My data set has 12% of data which returned. So ...
0
votes
0answers
23 views

encoding categorical time series data with missing value

I am trying to pre-process (encode / normalize / standardize) my time series data where values are categorical and there exist, two types of nan values ...
0
votes
0answers
26 views

Relationship between parameters of Factor Analysis with categorical data and IRT-parameters

I have a problem in understanding the relationship between parameters of Factor Analysis with categorical paramters and IRT-parameters. The relationship is clearly defined, for example in Kamata, ...
3
votes
1answer
38 views

Statistical testing on discrete time series data?

I am trying to analyse some data which has 40 different subjects, 1 categorical factor with two levels (20 male and 20 female). The rate of tree cutting was recorded at 4 different time points for ...
0
votes
0answers
14 views

Stats to compare 3 different choices within the same group [closed]

This might sound like a simple question but I'm new to stats and would really appreciate any help you can give. In short, food choice of a group has been recorded over a period of time. Results show ...
0
votes
0answers
11 views

Can Spearman's correlation be used to assess relationship of nominal and categorical data sets?

I've got 3 sets of data from 3 tests. In a health care scenario there's a set of tests to assess a specific pathology. The 3rd test is very time consuming and costly so the 1st and 2nd test were ...
0
votes
0answers
25 views

Proper procedure for logit regression

The data I've been given has a mass of two level factor variables, roughly 10. However, all of these variables are mutually exclusive. The online form is recording whether you checked a box or not, ...
0
votes
0answers
13 views

sample size advice for matching nominal variables

I have two databases of patients and medications. Each database has the same patients. Both have millions of records. My job is to select a sample from each and confirm that the medications match. ...
-1
votes
1answer
67 views

Categorical variables and distribution

Let's say a data set has 20 people and each one has a score. People can be classified by their country, region, and race. I want to measure how much each category can describe the distribution of ...
1
vote
1answer
38 views

Alternatives to using dummy variables?

I am working on this dataset: https://www.kaggle.com/russellyates88/suicide-rates-overview-1985-to-2016, and it has a lot of categorical variables, while I am more used to work with the continuous ...
0
votes
0answers
26 views

R: Using Wilcoxon rank-sum test to compare categorical data and obtain Cliff's delta effect size

I have the following myData, where the response variable high-rated denotes if an application is high-rated or not, and the ...
1
vote
1answer
16 views

Chi Square vs Spearman correlation

I have a set of 2 ordinal categorial variables and I want to see the relationship between them. Chi square shows a significant value while the spearman correlation is non significant. What does it ...
-1
votes
1answer
28 views

When to use Theil's U and Cramer's V, the danger of symmertical data

As I understand, Cramer's V method of counting correlation between categorical variables may find correlations between symmetrical data.I searched a ton of sites, but the only thing I found was that ...
3
votes
1answer
41 views

categorical/count independent variable in regression

I have a variable snpA that is the genotype of a particular polyorphism of a patient genomic region. Let's say the genotype can be ...
0
votes
0answers
7 views

Association test for categorical ordinal variables and binary variable?

I could just use logistic regression but is there a test of association like chi2 I could use? Thank you
0
votes
0answers
12 views

Dimension reduction with mixed data similar to PCA [duplicate]

I would like to reduce the dimension of my data, which is stored in a n x m table. The table contains data for order items that have certain properties. These are, for example, the order quantity or ...
0
votes
0answers
24 views

Correlation Between Binary Variable and Continuous

Y is a binary variable (0 or 1) and X is a continuous variable. What would be the best way to check how these variables are correlated? Specifically, I'd like to check if the distribution of X | Y=...
-2
votes
2answers
25 views

Clustering categorial data

I have a dataset with 100 nominal categorical variables with two levels each, for example: Do you smoke? Yes/No Do you like to dance? Yes/No etc. How can I cluster this dataset for try to group/...
3
votes
1answer
36 views

Assessing GLM fit for categorical data

I am looking for advice on how to model categorical data, in particular whether or not a generalized linear model is appropriate for my situation and, if so, how to test for fit. My ultimate goal is ...
0
votes
0answers
9 views

Appropriate Encoding for Stock Technical Indicators ? RSI

happy new year and i am new to machine learning + python.. so recently i am doing a project on my own to use machine learning models on technical indicators.. I have my technical indicators data ...
0
votes
1answer
6 views

relation between one variable nominal and other ordinal

What is the best way to know the relation between two variables like gender (MAN/WOMAN) and opinion (Very Bad, Bad, Neutral, Good, Very good). (Nominal with ordinal) I think that with a chiq-...
1
vote
0answers
20 views

Why RANDOM noise images always predicted as BIRD?

Say I have fine-tuned a 10-classification ResNet18 network on CIFAR-10 and the accuracy on validation set is about 93%. However when feeding into 5000 random noise images (Gaussian noise with the ...
1
vote
1answer
29 views

Testing the relation between 2 Categorical Data (Gender and 5-leveled consumption) and Visualizing it in R

In my dataset, there are 3 data that I would like to check for relations, which are ...
0
votes
0answers
15 views

Gradient boosting (GB) splitting methods (categorical features)

Regarding categorical features - ordinary trees treat categorical features in two main ways, CART - considers only binary splitting, those computing the mean response value (y_mean_i per each category ...
1
vote
0answers
18 views

Principal Component Analysis on Numerical Predictors alone for Dimension Reduction

I'm trying to reduce the number of dimensions for this 'Network Anamoly Detection' dataset: https://www.kaggle.com/anushonkar/network-anamoly-detection The dataset has a total of 40 features out of ...
0
votes
0answers
25 views

Continuous predictors for negative binomial regression

I can't seem to find a straight answer for this question. From formal coursework I've taken, it seems that Poisson/negative binomial regression require a data layout like this: Where the categorical ...
0
votes
0answers
15 views

Tree-based machine learning algorithms and qualitative predictors with a lot of unordered categories

As far as I understood, tree-based methods are based on yes/no questions that refer to single predictors. E.g. is predictor A larger than 3000 or is predictor B = "TRUE". In case you have a ...
0
votes
0answers
32 views

Factor analysis for categorical data

I was wondering if some of you, experts can provide me advise on my data analysis. I have created a scale with categorical data (options with individual values rather than rating/likert scale or ...
3
votes
2answers
36 views

How to make a choice when there is doubt between a variable being categorical or continuous?

I have an instagram dataset. Often the caption contains tags (@person_x). I counted the amount of tags per post but now can't choose wether to use it as a continuous variable or categorical. I know ...
0
votes
0answers
11 views

Autoencoder model predict parameters from categorical distributions

I am working on a database-like data-set where each attribute is categorical (nominal). Furthermore, each attribute value is a vector of marginal probabilities, each probability representing the ...
1
vote
1answer
23 views

Visualizing categorical data with 7 variables

I'm working with a grouped data set on the presence of a particular disease (Byssinosis): ...
3
votes
1answer
37 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
30 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. ...
2
votes
1answer
35 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
14 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 ...
1
vote
0answers
24 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 ...
2
votes
1answer
68 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
22 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
14 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
16 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
25 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 ...