Categorical data can take on a limited (usually fixed) number of possible values called categories. Categorical values "label", they do not "measure". Nominal and dichotomous/binary scale types are categorical. Some people consider ordinal scale categorical too.

learn more… | top users | synonyms (3)

1
vote
0answers
10 views

glmnet: How to make sense of multinomial parameterization?

Following problem: I want to predict a categorical response variable with one (or more) categorical variables using glmnet(). However, I cannot make sense of the output glmnet gives me. Ok, first ...
0
votes
0answers
28 views

Multivariate regression with categorical response variables

Explanation of Data: I started with a data set where each user belong a specific group and their contribution to different domains. After multiple pivots and pre-processing attempts, I got my data in ...
0
votes
1answer
54 views

R regression difference between factor and numeric

I have a set of data that I am using regression analyses on. All of the columns are numeric (as far as I can see) a mix of integers and reals. However, two of the columns are being read from the CSV ...
2
votes
2answers
154 views

When can a continuous variable be treated as categorical?

I have a continuous variable, which can take any value between 0 and some large, though not infinite, number. Let us assume that the maximum possible value is 1000. The values are nowhere near ...
0
votes
0answers
29 views

Predictive model with combinations of dummy variables of different length

I would like to try to predict the amount of a public contract based on historic records where the main variables that I can fit against include: contact duration (continuous) number of buyers ...
0
votes
2answers
35 views

Finding an interested value in a categorized variable

Could please someone answer me how to solve the following problem. A very small part of my dataset is: ...
1
vote
2answers
37 views

Handle missing values in factor variable

I have a huge dataset for a binary classification problem (about 1.5 million rows), and the feature space is quite large (145 dimension). Some of these features are factors (YES, NO), but there is ...
1
vote
1answer
35 views

Multilevel: Can I include two dummy variables of a 7-dummy-set into a random slope?

I am calculating a two-level linear multilevel analysis. A look at the random intercept random slope model showed me a significant decrease in my model deviance if I include two dummy variables. Those ...
-1
votes
0answers
19 views

Do I need to transform object scores of principal components obtained from CATPCA before regressing?

As part of my internship I have obtained a dataset containing 11 categorical explanatory variables and a number of categorical response variables. Using CATPCA i have reduced my explanatory variables ...
2
votes
1answer
37 views

Interpretation of betas when there are multiple categorical variables

I understand the concept that $\hat\beta_0$ is the mean for when the categorical variable is equal to 0 (or is the reference group), giving the end interpretation that the regression coefficient is ...
0
votes
2answers
29 views

Comparing prepostest different observational categories

Two groups of individuals are subjected to two different treatments. We have video recordings of them pre and post treatment. Observational categories are registered every minute for a series of ...
0
votes
1answer
26 views

Ways to test bar charts with few bars to see if they come from the same distribution?

I have survey data with ordinal/categorical data. Most of the time the answers to question are Yes/No. I want to compare the bar charts (normalized) of yes/no from participants who gave a particular ...
0
votes
1answer
30 views

build model with complicated types of feature variables

I have been asked to build a model to predict a life span of a material based on a couple of features. The features can be classed into the following categories: 1) The feature variables just have 0 ...
1
vote
1answer
34 views

Spearman's rho for nominal / metrical data

Can Spearman's rho be used to calculate correlations between nominal (i.e., locations such as 1 = City1, 2 = City2, 3 = City3) and metrical data (i.e., revenue generated in US dollars)? I also heard ...
2
votes
2answers
112 views

Simplifying variable effects in a GLM in R

Apologies, but it looks like my question is off topic for this forum. Thanks for all the excellent replies though. For those who have come across this question if they've been looking for something ...
1
vote
2answers
51 views

Forcing nlme to give the results for the levels of a treatment as “absolute” values instead of contrasts

I am using a nonlinear model to fit an equation to data using nlme in R. Several values (one by treatment) are estimated for a fixed effect. As usual, by default ...
0
votes
0answers
15 views

Summary of Probabilities

I am trying to summarize the ages of a population of five people. I have the following observations with an "Average" calculated at the end: ...
1
vote
1answer
51 views

Best way to represent x attributes in y categories in same chart over time series

Is it possible to represent x attributes in y categories over a time series in same chart without losing ability to cross verify between attributes within same category and same attribute between ...
0
votes
1answer
30 views

OLS with categorical variables [duplicate]

1) When we omit the intercept, aren't we forcing the regression line through the origin? Does that pose any problem because we assume that there is no variable that affects the outcome other than the ...
-1
votes
0answers
38 views

How to perform a regression on principal components obtained from CATPCA in SPSS

As part of my internship I have obtained a dataset containing 11 categorical explanatory variables and a number of categorical response variables. Using CATPCA i have reduced my explanatory variables ...
4
votes
2answers
92 views

How to perform residual analysis for binary/dichotomous independent predictors in linear regression?

I am performing the multiple linear regression below in R to predict returns on fund managed. reg <- lm(formula=RET~GRI+SAT+MBA+AGE+TEN, data=rawdata) Here ...
1
vote
2answers
41 views

Hypothesis testing: difference between proportions

I am investigating staff inequality between genders and ethnicities in an institution. I have data on contract types (permanent or fixed term) and pay grades for almost all employees. I want to test ...
0
votes
0answers
29 views

Categorical Data

I have a questionare. Questionare has six variables, suppose x1,x2,....,x6 and each variable has six questions. each questions has a response , strongly agree, agree, indifferent, disagree, strongly ...
0
votes
2answers
18 views

Large difference in number of cases in each category of a variable

I want to run an analysis on a data set. However, the primary predictor variable (5 point scale) varies greatly in size of each group. I plan to create a dichotomous variable from these 5 category. ...
0
votes
0answers
84 views

Linear regression with dummy variables: p-value calculation

-The standard procedure (general case) for finding p-values for linear regression coefficients is usually like this: $$Y=b_{0}+b_{1}X+\epsilon$$ Since $\hat{ b_{1} }=\frac{\sum ...
0
votes
0answers
3 views

How can mutual information be used in analysing a survey of categorical/nominal data?

I have data arising from independent surveys taken from at least 200 participants. In the survey there is a set of question of categorical and nominal types. I have no knowledge of the nature of the ...
1
vote
1answer
88 views

(Automated) feature selection in multiple regression with categorical variables

I need a general guide on what are the appropriate approaches to automated feature selection in multiple regression with categorical variables. In my case, I have several numeric and categorical ...
0
votes
1answer
25 views

Multivariate stats

I have the following data to analyse and not sure what the best method would be. I have percent coverage data for several invasive plant species. as well as several variables including different land ...
0
votes
0answers
12 views

Joint model for ordinal repeated measures data and MNAR dropout using R

I have a dataset consisting of repeated measures data of graded toxicity scores (0-4) in a large number of patients being treated with a anti-cancer drug. We would like to identify predictors for ...
0
votes
2answers
50 views

Time series - plotting continuous and categorical variable

I have one dependent continuous variable and an independent categorical variable. Each one minute window on a time series is marked with one category, for example 10:00 - 4, 10:01 - 1, 10:02 - 5, ...
0
votes
0answers
10 views

preprocessing and dummy variables order of procedure

I would please like to know when I should conduct pre-processing procedures (removing near-zero variance, highly correlated predictor variables, and linear dependencies) when planning to create dummy ...
0
votes
0answers
31 views

Scaling categorical data in regression

It seems odd to scale a categorical variable, but I need to get the correct coefficients for each of my variables in linear regression. Is it correct to scale the same way you would with continuous ...
2
votes
1answer
45 views

Ok to use 0 and 1 for a varaible in a linear regression?

Ok this is a simple quesion that's been bugging me. The question is how to encode a linear model variable with only two possible values and avoid any trouble introduced by using zero. Say you have a ...
0
votes
3answers
29 views

SPSS - How do I analyse two categorical non-dichotomous variables?

I'm having some issues running an analysis with two categorical variables that are both non-dichotomous... Some background information on my study: My study focuses on how young adults sexually ...
7
votes
2answers
412 views

Why does it take R a long time to fit a model with a many-level factor?

I fit a model with a factor with many levels and it takes R a really long time to fit that model. Why is this? For example, if I fit a regression to predict players' salaries, and include a factor ...
2
votes
1answer
74 views

Generate random data for logistic regression with a categorical independent variable

I am trying to generate a data frame of fake data for exploratory purposes. Specifically, I am trying to produce data with a binary dependent variable (say, failure/success), and a categorical ...
0
votes
1answer
50 views

Analysing ranked data

I had following question in my questionnaire: Rank following factors: price, quality, advertisement, brand, reference from 1 (very important) to 5 (least important) that influenced on your buying ...
0
votes
1answer
27 views

Test for correlation between continuous and categorical variable [duplicate]

I am wanting to know what type of statistical test would need to be carried out to determine if there is a correlation between one categorical variable and one continuous variable.
0
votes
0answers
36 views

Controlling for categorical variables before correlation using residuals?

I’m looking for a way to control for the effect of multiple categorical variables, all of which contain two independent categories, on two continuous variables before I correlate these continuous ...
2
votes
1answer
58 views

Analyzing the effect of categorical variables on a correlation coefficient

For my research project, I’m looking for some help on how to analyze my data. The research setup is as follows: I’ve got two normal variables that I want to correlate with each other and a number of ...
-2
votes
1answer
42 views

Graph Interpretation

I would like to ask what could be the most possible interpretation of these two graphs attached. One of them depicts conditional probabilty p(Y|X) whereas the second one shows Y regressed on X. I ...
1
vote
0answers
25 views

How does GBM model handle categorical variables with many levels

I am using gbm model to fit a continuous dependent variable Y with several categorical variables, say, X, Z, V, and W. Suppose X has many levels (distinct values) and Y has moderate number of levels, ...
7
votes
1answer
168 views

Survey Method on Personal Isues

A statistician friend of mine told me of an interesting technique used to obtain honest responses on surveys that dealt with sensitive issues. I recall the general gist of the method, but am wondering ...
0
votes
1answer
57 views

Machine learning - curve categorisation

I have curves of the following structure (it is the blue one I am interested in) These curves reflect the volume of blood (actually gamma ray counts) in the left ventricle as a function of time ...
0
votes
0answers
61 views

Mann-Whitney U-test in R

I'm doing a Mann Whitney U test in R but it won't run the code: downstream<-subset(mydata,Direction=="D") Wilcox.test(Date, Species, data="downstream") ...
0
votes
0answers
20 views

Interactions between Dummy codded categorical variables in R

I have estimated a mixed-logit model in R.Here are my Results ...
2
votes
0answers
60 views

Replicating stata results in R

I'm working with a faculty member who wanted me to do the data work in Stata, but now wants me to estimate the models in R as well because the graphics are more flexible. However, I'm having some ...
2
votes
1answer
45 views

Distances for binary and non binary categorical data

I am computing a matrix of distances for categorical data. I am using the Jaccard distance since as far as I understood it should be working properly with this kind of data. I have BOTH binary and ...
0
votes
0answers
22 views
0
votes
0answers
13 views

Dealing with numbers-based categorial data in rf regression: to standardize, or encode?

I'm working with the SEER cancer dataset, and I'm trying to use regression to calculate the months a breast cancer patient can expect to survive given certain variables. Some of these variables are ...