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
8
votes
3answers
2k views

Testing paired frequencies for independence

I hope this isn't either far too basic or redundant. I have been looking around for guidance but so far I am still uncertain of how to proceed. My data consists of counts of a particular structure ...
9
votes
2answers
11k views

Yates continuity correction for 2 x 2 contingency tables

I would like to gather input from people in the field about the Yates continuity correction for 2 x 2 contingency tables. The Wikipedia article mentions it may adjust too far, and is thus only used in ...
2
votes
3answers
155 views

How to look at two different (but related) averages within a population

I'm looking at two plant categories (all species fall into one type or the other) at several different types of locations. Within each type of location, I have several samples, so I have an average of ...
1
vote
2answers
3k views

Analysis with three categorical variables [closed]

I have three variables, 1. Irrational Beliefs (Categorical) 2. Anxiety State/ Trait (Categorical) 3. Personality Traits (Categorical) Which statistical analyses can be used?
4
votes
1answer
3k views

Data transformation for Principal Components Analysis from different Likert scales

I have data from a survey comprised of several measures that used different Likert-type scaling (4-, 5-, and 6-point scales). I would like to run a principal components analysis using the data from ...
2
votes
2answers
358 views

Plugging in mean values/proportions to a logistic regression with continuous-discrete interaction

I have a logistic regression (in SAS, for reference) with continuous and categorical predictors (with reference coding), and an interaction term between one of each type (assume for now that the ...
10
votes
3answers
113k views

How to deal with non-binary categorical variables in logistic regression (SPSS)

I have to do binary logistic regression with a lot of independent variables. Most of them are binary, but a few of the categorical variables have more than two levels. What is the best way to deal ...
4
votes
1answer
2k views

Mixed effects log-linear models

There are occasions where I would like to fit log-linear models where the independence assumption between observations is violated. It is the normal case that I have multiple observations from each ...
8
votes
2answers
15k views

Continuous and Categorical variable data analysis

I have three variables: distance (continuous, variable range negative infinity to positive infinity) isLand (discrete categorical/ Boolean, variable range 1 or 0) occupants (discrete categorical, ...
6
votes
5answers
2k views

How to rank the results of questions with categorical answers?

I'm working with the results of a survey which has multiple questions. All answers (in this case) are categorical and ordinal (such as very unhappy, unhappy, neutral, happy, very happy). I'm looking ...
11
votes
2answers
9k views

Quickly evaluate (visually) correlations between ordered categorical data in R?

I'm looking for correlations between the answers to different questions in a survey ("umm, let's see if answers to question 11 correlate with those of question 78"). All answers are categorical (most ...
13
votes
4answers
7k views

How to summarize categorical data?

I've been struggling with the following problem with hopefully is an easy one for statisticians (I'm a programmer with some exposure to statistics). I need to summarize the responses to a survey (for ...
11
votes
6answers
7k views

How to find summary statistics for all unique combinations of factors in a data.frame in R? [closed]

I want to calculate a summary of a variable in a data.frame for each unique combination of factors in the data.frame. Should I use plyr to do this? I am ok with using loops as opposed to apply() ; so ...
10
votes
2answers
26k views

Is it possible to directly read CSV columns as categorical data?

I need to analyze with R the data from a medical survey (with 100+ coded columns) that comes in a CSV. I will use rattle for some initial analysis but behind the scenes it's still R. If I read.csv() ...
0
votes
2answers
336 views

How to organize a dataset with many attributes

I have a set of data which consists of many different types (measurable, categorical) For example: name measurable_attribute_1 categorical_attribute_1 measurable_attribute_2 ...
4
votes
2answers
240 views

Fitting a fixed, exponential relationship between categories with categorical data

Suppose I have a table of counts that look like this A B C Success 1261 230 3514 Failure 381 161 4012 I have a hypothesis that there is ...
11
votes
4answers
17k views

Multiple Chi-Squared Tests

I have cross classified data in a 2 x 2 x 6 table. Let's call the dimensions response, A and ...
9
votes
6answers
3k views

How to handle count data (categorical data), when it has been converted to a rate?

I am working on disease infection data, and I am puzzled on whether to handle the data as "categorical" or "continuous". "Infection Count" the number of infection cases found in a specific period ...
4
votes
4answers
2k views

Incorporating boolean data into analysis

I have a data set of about 3,000 field observations. The data collected is divided into 20 variables (real numbers), 30 boolean variables, and 10 or so look up variables and one "answer" variable ...
9
votes
1answer
2k views

How can I use optimal scaling to scale an ordinal categorical variable?

In an answer to this question about treating categorical data as continuous, optimal scaling was mentioned. How does this method work and how is it applied?
57
votes
8answers
41k views

Does it ever make sense to treat categorical data as continuous?

In answering this question on discrete and continuous data I glibly asserted that it rarely makes sense to treat categorical data as continuous. On the face of it that seems self-evident, but ...
3
votes
4answers
3k views

Cross tabulation of two categorical variables: recommended techniques

I'm aware that this one is far from yes or no question, but I'd like to know which techniques do you prefer in categorical data analysis - i.e. cross tabulation with two categorical variables. I've ...