Stack Exchange Network

Stack Exchange network consists of 174 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

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

SEM setup question: Dummy coding with interaction term

I have an SEM that fits well according to several metrics and returns meaningful results. However, I'm not sure if the structure is valid. I have 3 between subjects conditions (2 treatments and one ...
0
votes
1answer
13 views

Comparing categorical data

I'm comparing two groups in a large dataset. For some of the variables, the following 5 choices are available: 1, 2, 3, 4, 5 or more This seems like categorical data- but would it be considered ...
-1
votes
0answers
8 views

the pooled data creation from the 5 imputations [on hold]

Do you know how can I create the pooled data from the imputed data (5 imputations in total) in SPSS. When I am googling, I have found this following answer. But I could not realize it. Please help ...
0
votes
0answers
8 views

iterative proportional fitting algorithm [on hold]

Good day, i was able to manually solve this given using the ipf algorithm which yielded convergence at the ninth iteration. I want to replicate this problem using the r-programming language, to see if ...
0
votes
0answers
12 views

Checking for correlation with different kind of data

I am trying to check if there is a correlation between different variables. I have values for: Nationality ___________________[Nominal] Age ________________________[Continous-Ratio] Height ...
0
votes
0answers
19 views

Alternatives to logistic regression when dataset can't meet 10 events per predictor variable

I have a dataset with a binary outcome I'd like to model, but have many more parameters than events, probably ~100 categorical parameters to test, in a dataset with 20 events in ~600 observations. As ...
0
votes
0answers
15 views

Comparing Different Segments of a Sample Using Binary Logit Model

I design a binary logit model using all the observations of a data set. I was able to get a model with a dozen of significant variables, and to estimate the beta coefficient thanks to a statistical ...
0
votes
0answers
8 views

Factor Graphs and Sum-Product Algorithm

I am trying to study Factor Graphs and the Sum-Product Algorithm. I'm having a hard time understanding what are these factors. For instance, when I see something like $$ f(x_1, x_2, x_3, x_4, x_5) = ...
0
votes
1answer
22 views

Which statistical method should use to compare two dependent data (from 1 patient) but not paired?

I want to compare the number of lesions worsening and non worsening on superior to inferior side of the eye of a group of patients. I want to compare if the proportional results (the total sum of ...
0
votes
1answer
23 views
0
votes
0answers
16 views

What is the the cost of combining categorical variables?

I have 2 categorical variables e.g. state and city. Missing values progress as such city > state. As opposed to throwing out all observations with missing values for city or throwing out city all ...
0
votes
1answer
18 views
1
vote
0answers
20 views

What's the best way to display summary statistics for categorical variables?

I collected data that includes factor variables, like employment status and even age (collected as "between 20 and 30", etc.). I know how to make summary statistics table in R or Stata, but I can't ...
0
votes
0answers
22 views

Dummy Variables vs Factor Usage in R for building Cox Regression

I'm aware that factors are the proper way to handle categorical variables but the explanation gets a little confusing when we start having factors with multiple levels. For example, let's say I have ...
0
votes
0answers
11 views

Comparing proportions of different categories of a nominal variable from Time 1 to Time 2

I'm trying to analyze a bunch of data to see whether the proportions of the Variable with different Categories (i.e. Cat1, Cat2, Cat3) in Time 1 (Early) will have an effect on Time 2 (Late). Each ...
0
votes
0answers
24 views

How to compare two categorical distributions with small counts

I would like to compare pairs of distributions (e.g. the two rows ‘expect’ and ‘simul’ in the table below) to answer the question: is the ‘simul’ distribution significantly different from the ‘expect’ ...
0
votes
0answers
6 views

Plot categorical vs continuous variables (In general and specifically javascript)

I asked this question on stack overflow, but I think it is better asked here, so I migrated: We are working on a web project were we want to plot continuous vs categorical variables. I usually work ...
1
vote
0answers
12 views

Exploratory factor analysis of a non-normally distributed data set with probable multicollinearity problems

I am trying to develop a scale measuring employee satisfaction regarding organizational support using spss. Most of my variables are positively skewed which should not be a problem in EFA as long as ...
-1
votes
0answers
26 views

What shall i do if a feature categorical variable in my data set almost matches my target variable

I have a data set as part of an analytics challenge competition wherein I need to build a model to predict the employment status in the test data set based on around 25 other feature variables. One ...
0
votes
0answers
7 views

GBM with an ordered y variable

I would like to execute a gbm in python, preferable in the h2o framework. My y variable is an ordered one, from to 1 to 5. I see that h2o does not have an implementation of an ordered logit. I ...
0
votes
0answers
15 views

Data selection ( row ) for modelling, Lift calculation

Given I have an audience of 1000 people, only 900 people have some activity on my website, 300 have some activity on my mobile app. Focusing on web activity data, my hypothesis is some of those action ...
1
vote
0answers
29 views

can i use random forest for feature selection and then use poisson regression for model fitting? [duplicate]

Variables that are important in random forest don't necessarily have any sort of relationship with the outcome. So would it be wise to use random forest to gather the most important features and then ...
0
votes
0answers
8 views

Formalised analysis of questionnaires

I have given a dataset that resembles a questionnaire and I am requested to write a statistics paper on it. I have little to no experience dealing with cross section categorical data. While I have ...
1
vote
0answers
11 views

Omnibus Test for 3 or more Dichotomous Variables

I would like to ask whether there is an omnibus test to determine whether the proportions across three or more dichotomous variables are different. If so, then what is the name of the test. For ...
2
votes
4answers
77 views

How to simulate Likert-scale data in R? [closed]

I want to do a Monte-Carlo experiment to check my theoretical finding regarding Likert-scale data. I want to have random test results with N participants, where every question has 5 answers: (0,1,2,3 ...
-1
votes
0answers
19 views

What model should I be using?

I am still learning about all this and do not know the right language/terminology yet so please bear with me. Let me know if the following is too vague: I am trying to model some medical data ...
0
votes
1answer
26 views

Why are variances of observed variables estimated in Factor Analysis / SEM?

Let's say we have one latent factor L and three observed variables X1, X2 and X3. From the variance/covariance matrix of X1, X2, X3, we create this latent factor that explains the most out of the ...
4
votes
1answer
70 views

Including time of day in a linear regression model

The title may be entirely inappropriate for this question: that depends on whether I am on the right track. I am developing a statistical model to evaluate flower temperature based on air temperature. ...
0
votes
0answers
27 views

Compare prevalence of categorical feature among different size pop

Problem description I have 2 populations, let's say men and women, of very different size. men population size : 100 000 women population size : 130 Each individual in the populations can combine ...
-1
votes
0answers
24 views

R Difference-in-Difference for categorical variables

I understand difference-in-difference conceptually. I am trying to figure out how to implement this in R. Any insight/suggestions into the methods is also welcome. I am new to R and DID. I am ...
0
votes
1answer
30 views

Analysis of two categorical independent variables with one categorical (ordinal) and one continuous dependent variables

I am trying to understand how best to analyze my data, or find similar examples. I have two independent variables: Treatment (11 categorical levels) and Genotype (2 categorical levels). I then ...
0
votes
1answer
18 views

How to categorize data as others if training set is not available?

I run into a problem. I am using the decision tree to classify the incident category based on the short description the user has used while logging the ticket. I have the training data only for 5 ...
1
vote
1answer
41 views

Comparing simulated categorical data against empirical categorical data

I wondered if anyone could give me some advice on this problem? I need to compare one sequence of (mutually exclusive) states against another (of the same length) to say if they match or not. For ...
1
vote
1answer
88 views

R glm() with a categorical response variable [duplicate]

I want to know whether I can use glm() with a categorical response variable, and if yes how exactly. I have a response variable with three unordered levels, and both categorical and continuous ...
0
votes
1answer
18 views

time series patterns for categorical variable

I have a large database, containing alarm data from a manufacturing cell. Each entry specifies the name of the alarm, and a matching identifying ID number. The alarm variable can only assume a number ...
0
votes
0answers
21 views

Sampling call demand

the scope of the sampling is to identify the change in the proportion of the different call demand categories and sub-categories every 5 months. Some challenges: Population >100,000 Time period: 5 ...
0
votes
0answers
16 views

Visit level variables along with merchant level variables

I am using mixed model and my dependent variable is conversion. Records are at visit level. I have merchants selling different products in the data set, and each merchant has attributes: merchant name,...
0
votes
0answers
23 views

Stepwise clustering for factor variables in regression model

I have a GLM for which I would like to include a categorical variable that has both significant and less significant levels and in general too many. Let's assume there is a fixed reference level so my ...
1
vote
1answer
33 views

Reasons not to one-hot-encode categorical features

I overheard a colleague discussing her strategy for using categorical features the other day, and she mentioned that instead of one-hot-encoding, she does something like this: ...
0
votes
0answers
15 views

Product name in time series regression model

I am struggling on a university project in which the objective is to forecast sales of bank products. The target variable is the amount of sales and besides the many numerical predictors I have only ...
0
votes
0answers
19 views

Correlation between Ordered Variable and Categorical Variable

I am analyzing Opportunities for Sales people. I have a categorical variable which is Status:{Won,Lost} My dependent variable, and other Independent ordered variables like the stages of the ...
1
vote
0answers
20 views

Classifying objects based of a varying number of the same type of feature vector for each object

For a congressional session, I have created a doc2vec model of speeches made. Using the vectors from this model, I have a dataset of each congressperson, their political affiliation, and a list of the ...
1
vote
0answers
10 views

Chi square for comparing more than 2 categories

I did a retrospective study on complications after 2 types of surgery. My data is catagorised by subtype of complication (bleeding, infection, nerve damage, ...). Can someone tell me if I can ...
1
vote
0answers
5 views

SPSS identification restrictions on EFA models

I am trying to understand the restrictions used by SPSS to identify EFA models using ML extraction. FOr example the GFI for a 2 factor model of 8 items (shown below) has 13df I understand to identify ...
1
vote
2answers
63 views

Convert categorical variable to numeric values or dummies for k-means clustering? [closed]

I am using K-Means clustering algorithm on a dataset. One variale has 6 categories and I want to know how to deal with this. I am thinking of two approaches: Converting the values to 1,2,3,4,5,6 ...
0
votes
0answers
12 views

Analytical method for two ordinal variables

I have such a contingency table for analysis. Both Experience and Importance are ordinal variables. How can I analyse the relationship between these two variables? Which methods and R packages do you ...
0
votes
0answers
18 views

Categorical variable interaction compared to individual regressions

We are examining our understanding of interaction terms in categorical variables. We have a three category variable, and the model is: $y=\alpha+\beta x+\beta_0x_0+\beta_1x_1+\beta_2xx_0+\beta_3xx_1$ ...
0
votes
1answer
30 views

Logistic linear mixed effects model with categorical predictors

I've read a lot of threads on stack exchange but haven't exactly found what I'm looking for. Everyone seems to have a slightly different problem/issue. First, lets have a look at my data: 120 Users ...
0
votes
0answers
9 views

Multiple Comparisons, Risk Models

I am planning to do a survey which collects information on four predictors of crime using Likert scales along with demographics. Some of the demographics are categorical. The response variables are ...
1
vote
2answers
46 views

Multiple regression - singularity issues [duplicate]

I am trying to fit multivariate regression models to my data; however, I get singularity warnings. Please find a part of my data below: ...