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
4 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, ...
1
vote
1answer
20 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
0answers
13 views

Hedge fund data

Where can I find the data of Hedge fund returns? I want to compare my strategy returns with at least 10 hedge fund returns.Can anybody help please or give some hint about where can I find it ?
0
votes
1answer
33 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
37 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
16 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
51 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
33 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
7 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 ...
4
votes
3answers
87 views

Why do we need to dummy code categorical variables

I am not sure why we need to dummy code categorical variables. For instance, if I have a categorical variable with four possible values 0,1,2,3 I can replace it by two dimensions. If the variable had ...
2
votes
1answer
18 views

Variable selection: Why certain categories are chosen but not others?

I'm doing variable selection using the Lasso. To explain my response variable I have several predictors, both categorical and numerical, but I have problems to explain the process that underlies ...
1
vote
1answer
43 views

Minimum sample size to observe certain outcomes

Given a categorical random variable with large number of possible outcomes and a sufficiently large sample, I observe that 90% of the sample falls into some relatively small number of categories, say, ...
0
votes
2answers
17 views

How to compare beta subgroup with beta overall group?

My plain regression looks as follows: tendaystockreturn = alpha + beta * dummy variable that takes a value of 1 in case a director purchases shares Now I want to test whether a subgroup of directors ...
2
votes
1answer
33 views

Answering “1” to more than one of the dummies for a single categorical variable?

When using multiple dummies for a categorical variable: what happens if a few of your observations can check off "1" in more than one of the dummies? Does it matter? Does it only matter dependent on ...
1
vote
0answers
24 views

Quantify shift between different categories

Let us consider a ordinal variable with four values say A,B,C,D (A greater than B greater than C greater than D) and a person can have any of these values at a given point in time. I have data which ...
1
vote
1answer
44 views

How to determine whether a set of data are qualitative or quantitative?

Assume a data set with multiple columns, where the categorical data are coded. What is the best rule(s) or rule of thumb to determine whether each column contains qualitative data or quantitative ...
0
votes
0answers
11 views

Finding the effects of certain levels of a factor predictor

I have fitted a binary classification gbm model, and one of the predictor variables, Affiliate has 50 different levels. Given ...
4
votes
1answer
116 views

How to represent categorical data in a pie graph form?

I have been asked to produce a pie graph of some categorical data. On a simple scale it look like this: ...
1
vote
1answer
30 views

AICc and K for categorical factors and interactions

I am new to multimodel inference. I am trying to create a model that has multiple categorical factors and possible interactions. For example say that my model is... Y ~ X1 + factor(X2) + ...
1
vote
0answers
19 views

Pairwise chi-squared tests with Bonferroni correction

I have two categorical datasets, say, $A$ and $B$, which are sparse. I would like to apply pairwise $\chi^2$ tests to a certain categories, which are sufficiently populated (say, have expected values ...
0
votes
0answers
14 views

Adonis on categorical data

I wish to run Permanova on categorical data (example CSV structure is below) without any successes. Is Adonis can handle categorical data, an example script will be great. Thanks a lot I have a this ...
0
votes
0answers
8 views

One-hot encoding before or after split into training and test sets?

Is it safe to do my one-hot encoding of categorical variables before splitting the data into training and test and cross validation sets? I ask because this process alters the dimension of the data, ...
0
votes
1answer
33 views

Is Student's $t$-test the right choice?

I have 2 patient populations taken from the same time period that underwent 2 different surgical laparoscopic procedures. I want to compare the rate of conversion to an open surgical procedure. In my ...
1
vote
3answers
89 views

I do not have hypotheses for my research and I have got only categorical data. what kind of data analysis can i conduct? also

I do not have hypotheses for my research and I have got only categorical data. what kind of data analysis can i conduct for correlation between variables? also is chi-square used only for hypotheses ...
0
votes
1answer
18 views

Analyse data with ordinal and continuous independent variables and a categorical dependent variable

I'm trying to find a test that will allow me to test the relationship between a categorical dependent variable and several independent variables that are both continuous (interval) and ordinal. If ...
0
votes
0answers
22 views

Evaluating the $H_0$ of a contigency table

I have a 2 way contigency table with variables $A=\{a_1,a_2\}$ and $B=\{b_1,b_2\}$. I have the observed cell frequencies $O_1=a_1b_1$, $O_2=a_1b_2$, $O_3=a_2b_1$ and $O_4=a_2b_2$. My null hypothesis ...
1
vote
0answers
14 views

interpretation of Goodman Kruskal Gamma

Value of Goodman-Kruskal Gamma = 1 or -1 means that X and Y are monotonic but not strictly so i.e., $X_1 < X_2$ implies $Y_1 \leq Y_2 $. Can someone please explain this to me with an example?
1
vote
0answers
64 views

logistic regression with dummy variables for fractional factorial design

We have conducted a survey experiment with varying amounts of incentive (factor 1 = I1, I2, I3, I4, I5). The experiment was conducted stepwise in three subsequent studies (factor 2 = S1, S2, S3). ...
-1
votes
2answers
38 views

How do you draw a random sample of unique IDs in a large dataset?

Rookie here -- I have a a large data set with about 75,000 observations, and 2000 unique IDs. Therefore, each unique ID has about 37 observations. I'm trying to draw a random sample of unique IDs, say ...
1
vote
2answers
32 views

Combining categorical and continuous variables to calculate a factor

I have a categorical predictor (income) and three continuous predictors (area, no. of bed rooms and no of cars). How can I form a single factor from these variables? In other words I want to combine ...
0
votes
0answers
22 views

Filtering Samples of Unequal Size and Correlating Categorical with Non-Categorical Data

Suppose I have a large number of samples, some of which only contain one observation, and some of which contain up to 12. Each observation can fall into one of four categories per sample. This ...
1
vote
0answers
53 views

How do I create clusters with a completely categorical data?

I am working on the project that requires data mining. I have been asked to use R. I have a dataset with all categorical variables and would like to form clusters on that. I am unable to figure out ...
0
votes
0answers
15 views

How To Determine Association Plot in R and p-value

I have created a contingency table and an association plot in R and I am not quite sure how to interpret it. Here is my contingency table: ...
0
votes
0answers
21 views

Similarities and dissimilarities between optimal scaling procedures in CATPCA and MCA

I have seen that multiple correspondence analysis (MCA) can also be seen as a generalization of principal component analysis when the variables to be analyzed are categorical instead of quantitative. ...
0
votes
0answers
12 views

Analysis to use with categorical predictors and continuous response variables

I am trying to figure out what the right statistical test to use is for data where the DV is continuous, and the IV's are categorical. There are a lot of different DV's that I want to run through a ...
0
votes
0answers
34 views

piloting a multinomial logistic regression model

I have 11 variables in my data set. farmers Group(1,2,3,4 this is my dependent variable) Independent variables Total holding ,Crop area , barn capacity.....and barn capacity extent match and YPH. ...
0
votes
0answers
29 views

Multi-group SEM with a categorical outcome (using lavaan)

I'd like to ask the SO community for some help in regard to the interpretation of a structural equation model with three groups, featuring a categorical outcome. I have found a lot of sources treating ...
1
vote
0answers
13 views

some suggestions for analyzing two-factor within subject design?

I'm doing a two-factor within-subject design experiment, and the two factors are all categorical variables. factor one has four categories, while factor two has two categories, and is counterbalanced. ...
1
vote
0answers
16 views

Regression equation formatting

I have a simple question for you, which has to do with style. Since I am a novice in writing research papers, I have the small issue of not knowing how to represent an equation in an acceptable way. ...
1
vote
1answer
21 views

Is there a value to show how fragmented is a group?

I would like to know if there is a way to calculate a number that can show how fragmented is a group? It should be something like "variance of categorical data"? For example I want to see how ...
1
vote
0answers
19 views

Nested analysis for categorical variables in SPSS

I have categorical data in the form of correct response (0/1 for each item respectively) and prevalence of a misconception (0/1 for each misconception on each item) from a pre and post assessment. ...
4
votes
2answers
83 views

Interplay of Categorical Data

I apologize if my phrasing is un-educated, I don't have much of a stats background. I'm struggling to find info answering my question because I lack the terminology to accurately describe it. Let's ...
0
votes
0answers
10 views

Correlation coefficient for Boolean data [duplicate]

I have a data set consisting of a number of variables: all are Boolean true/false type. Can I simply count the R correlation coefficient between two variables substituting 0 and 1 to get correlation ...
0
votes
0answers
15 views

Does it make sense to only drop a specific level of a categorical variable? [duplicate]

I don't have SAS and the dataset with me, so I made up this table (from my memory). Basically this is what I got: After deciding to leave the variable $age$ and $risk$ in my model, I created this ...
0
votes
0answers
33 views

Applied Analysis Question

I'm a newbie analyst and I'm facing a machine learning / regression problem which I cannot solve. The data I need to use in my analysis consists of information about press subscriptions of some ...
0
votes
2answers
45 views

Which test to use to see if tumor weight increases at different stages?

I have 60 cancer patients. I have checked their staging and the weight of their tumour in gram. One variable is cancer staging - Stage 1, Stage 2, Stage 3 and Stage 4 (in increasing order). Another ...
1
vote
0answers
28 views

When should I add a time-trend to a regression?

I've looked for this answer around the web with no luck so far. I'm mostly interested in how time trends apply to cross-section and panel data. Thanks
0
votes
1answer
109 views

German credit data: neural network, svm, logistic regression : input variables

I'm using the following data set on some credit scoring models: https://archive.ics.uci.edu/ml/datasets/Statlog+(German+Credit+Data) My teacher told me that it's best to use the same data set for all ...