0
votes
0answers
21 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
2answers
32 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 ...
2
votes
2answers
94 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
50 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 ...
4
votes
2answers
91 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 ...
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
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
0answers
9 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
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
55 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
57 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") ...
2
votes
0answers
59 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 ...
1
vote
1answer
34 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) + ...
0
votes
0answers
18 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 ...
1
vote
0answers
68 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
56 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 ...
2
votes
1answer
63 views

Cross-validation with dummy variables?

Does it make sense to use cross-validation with factor variables that have 3+ levels? When using bestglm, I get an error saying that it doesn't work with categorical variables. In the documentation ...
0
votes
1answer
41 views

GLM with categorical predictor on R

I need to do a model with a generalized linear model. My data are these: habitat : 0 or 1, group : 1 or 0 , mortality : yes or no, and the numbers of individuals for each case (habitat, group and ...
2
votes
1answer
19 views

Varying Non-Linear Parameters Based on Groups in R

I'm trying to develop a non-linear model, but I'd like to have the values for the parameters vary by group. To give you an example, a section of my data (just random numbers here) looks like: ...
4
votes
1answer
45 views

Presenting results of a meta-analysis with multiple moderators?

I wish to present the results of my meta-analysis using the best practices possible. I do not find, however, examples in articles similar to what my output is. Here's a simplification of my model and ...
2
votes
1answer
53 views

conducting multi-level regression on ordinal DVs with imputed data in R

Do you know of an approach/package that facilitates mixed model regression of ordinal dependent variables on multiply imputed datasets in R? Ideally, the function takes: a list of multiply imputed ...
1
vote
3answers
568 views

Correlations with categorical variables

I have a dataframe with many observations and many variables. Some of them are categorical (unordered) and the others are numerical. I'm looking for associations between these variables. I've been ...
1
vote
2answers
84 views

Is it important to convert “integer” variables (with 0 or 1 values) to factors?

I am working on a high-dimensional dataset (1776 variables). When I read the csv file, R loads variables (with 0 or 1 values) as class of "integer". Is it important to convert these variables to ...
0
votes
1answer
64 views

Partial least squares regression for categorical factor in R

I adjust the partial least squares regression for one categorical factor (2 levels – be or nottobe) with with the ...
6
votes
4answers
215 views

Help creating a chart to show categorical data over time

The scenario: Over a course of 10 minutes 2 security guards patrol a floor and have their movement tracked. They can either be on the left or the right side of the floor, and within each side of the ...
0
votes
1answer
61 views

using cluster information in multiple imputation

i need to impute a dataset all categorical variables before doing analysis. I can just simply impute with mode of all data or a variable. I belief that better option will be to classify the subjects ...
1
vote
0answers
24 views

How to obtain estimates for all levels in a mixed effects model that uses effect (deviation) coding?

I am running a binomial mixed effects logistic regression in R using glmer for a sociolinguistics project. I was asked to used deviation (effect) coding. From what ...
1
vote
2answers
55 views

How to test if two populations have the same demographics?

I have 2 population samples for which I want to assess whether they have comparable demographics. What is the right way to test this, that includes multivariate combinations ? I.e I would like to ...
1
vote
3answers
85 views

Visualize effects of a regression with categorical explanatory variables (3 levels) in R?

Using R, I want to run a linear regression to estimate the abnormal return on days with positive, negative and neutral news (CLASS). I'm a beginner in R, as well as in using regression models! First ...
0
votes
0answers
37 views

Exploring properties of groups in R

I have a data frame with the following structure: ...
0
votes
1answer
59 views

Multiple regression with “overlapping” categorical dummy variables

Using R, I want to run a linear regression to estimate the abnormal return on days with positive, negative and neutral news (CLASS). I'm a beginner in R, as well as in using regression models! First ...
0
votes
0answers
39 views

Approach to post-hoc test for factors in a regressions (in R)

I have a problem with some analysis I need to do. I have a series of regressions. Some of the predictors of these regression are categorical with multiple levels. I performed regressions, both linear ...
1
vote
0answers
51 views

Difference categorical variables R [closed]

I can't figure out how to do the following: I need the following linear predictor $\eta=team_i-team_j$ where, both $team_i$ and $team_j$ are categorical variables, which have 163 categories. Normally ...
2
votes
2answers
87 views

How to interpret multiple factors in model output in R

I am well aware how to read the model summary in R for a regression model when a factor is included. The "first" level, in terms of ABC, is regarded as the base level to which all further levels of ...
0
votes
1answer
64 views

Organize data with multiple levels of a categorical variable per entry, for easy R analysis

I need some help here. I have some data in which every entry can take one or more levels of a categorical variable. for example, I have a category with 3 levels: ...
4
votes
1answer
137 views

Clustering data that has mixture of continuous and categorical variabes

I have data that represent some aspect of human behavior. I want to cluster it (unsupervised) into behavioral profiles of some sort. now, some of my variables are categorical (with 2 or more ...
0
votes
1answer
40 views

Should we conduct post-hoc tests when there is a significant interaction but no significant main effects?

I have data showing outcomes of some treatment on different people grouped by sex and age (grouped into: infant, child, adult). I need to investigate if there is any difference in outcome among age ...
0
votes
2answers
118 views

Analysis using ANOVA

I want to compare 6 designs of spoons (D1,D2,D3,D4,D5,D6) in 20 children (blocks).I also want to see whether holding the spoon in right or left hand affects food-pinching response(number of M&M's ...
0
votes
0answers
35 views

I need an insight on result of my analysis

I need some help/insights on result of my data analysis. My object is to classify 3 types of different numbers. ie) 1 or 2 or 3 I built C5.0 tree + leave group out cross validation (hold out) ...
1
vote
1answer
60 views

Coding Categorical Variables

Suppose I am building a linear model in R. I will be doing standard OLS. I have 10 dummy variables (predictors) that correspond to different regions. 6 of these regions are in California, and the ...
0
votes
1answer
44 views

Cluster analysis

I am trying to cluster cells (1×1km) over a specific area. Each cell is composed of various habitats defined by a code. (Each habitat consists of 3 parameters, so a habitat code looks like e.g. ...
0
votes
0answers
13 views

R Prefmod for paired comparisons

I'm trying to use the prefmod package to analyzed paired comparisons, but unfortunately the documentation is a bit poor and the author is no longer with us. I have a survey with 32 questions, split ...
1
vote
0answers
36 views

NA or “noResponse” in categorical variables

I am learning R and data analysis methods, so I apologise if my question is too basic. I have a data sample of 4K+ records of sociologic survey. There are a few demographic variables and a lot of ...
0
votes
1answer
77 views

Can I Use a Dummy Variable in Quadratic form in lm() in R?

I'm trying to replicate models published in The Age-Productivity Gradient: Evidence from a Sample of F1 Drivers and am stumbling at first hurdle over a line "the baseline specification contains a ...
4
votes
0answers
112 views

Inspecting mechanism for missing values in categorical data without prior knowledge

Scenario I am inspecting the Soybean data set, which has a quite a number of missing values for various categorical variables. Plan My plan is to eventually perform data imputation. However, ...
1
vote
2answers
455 views

Understanding dummy (manual or automated) variable creation in GLM

If a factor variable (e.g. gender with levels M and F) is used in the glm formula, dummy variable(s) are created, and can be found in the glm model summary along with their associated coefficients ...