Hi
Thanks to Jeremy for his response...
I have been able to generate the factors and generate mlogit data using his
code:
mldata<-mlogit.data(mydata, varying=NULL, choice="pitch_type_1",
shape="wide")
my mlogit data looks like:
"dependent_var","A variable","B Var","chid","alt"
FALSE,"110","19
If you are just looking to collapse the dummy variables into two factor
variables, the following will work.
## Generate some example data
set.seed(1234)
n <- 100
# Generate outcome
outcome <- rbinom(n, 3, 0.5)
colnames(exposures) <- paste("V", seq(1:10), sep = "")
#Generate dummy variables for A
Hi All,
I am attempting to build a Multinomial Logit model with dummy variables of
the following form:
Dependent Variable : 0-8 Discrete Choices
Dummy Variable 1: 965 dummy varsgh...@student.monash.edu.augh@gp1.com
Dummy Variable 2: 805 dummy vars
The data set I am using has the dummy columns p
3 matches
Mail list logo