Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.36 KB | None | 0 0
  1. ## Joey Nichols
  2. ## Problem Set 9
  3.  
  4. library(mlogit)
  5. library(AER)
  6.  
  7.  
  8. data.for.logit = mlogit.data(data,chid.var = "situation",choice = "choice",
  9.                                      alt.levels = c("o1","o2","o3"), shape = "long")
  10.  
  11. mod = mlogit(choice ~ price + cost + hybrid  +electric + range + highperf + medperf
  12.                 | 0 , data = data.for.logit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement