library("mlogit") data("ModeCanada", package = "mlogit") MC <- dfidx(ModeCanada, subset = noalt == 4) ml.MC1 <- mlogit(choice ~ cost + freq + ovt | income | ivt, MC) 或者使用一个data.frame。在这种情况下,应该指明将传递给 dfidx 的其他参数: ml.MC1b <- mlogit(choice ~ cost...
data("Train", package = "mlogit") Train$choiceid <- 1:nrow(Train) head(Train, 3) id choiceid choice price_A time_A change_A comfort_A price_B time_B change_B comfort_B 1 1 1 A 2400 150 0 1 4000 150 0 1 2 1 2 A 2400 150 0 1 3200 130 0 1 3 1 3 A 2400 115 0 ...
在R中运行mlogit函数后预测概率的置信区间 、、、 一段时间以来,我一直在努力解决以下问题,如果能提供任何帮助,我将非常感激。我正在使用mlogit函数在R中运行logit模型,并能够为给定的预测器值生成选择每个备选方案的预测概率如下:data("Fishing", package = "mlogit") Fish <- mlogit.data(Fish 浏览1提问...
mlogit is a package for R which enables the estimation the multinomial logit models with individual and/or alternative specific variables. The main extensions of the basic multinomial model (heteroscedastic, nested and random parameter models) are implemented. Keywords:˜discrete choice models, maximum...
Multinomial Logit Models [R package mlogit version 1.1-1] 1. The problem set uses data on choice of heating system in California houses. The data set Heating from the mlogit package contains the data in R format. The observations consist of single-family houses in California that were newly ...
免费在线预览全文 Package ‘mlogit’ February 20, 2015 Version 0.2-4 Date 2013-12-20 Title multinomial logit model Depends R (= 2.10), Formula, maxLik Imports statmod, zoo, MASS, lmtest Suggests car, nnet, lattice, AER Description Estimation of the multinomial logit model License GPL (= ...
Package‘mlogit’ February20,2015 Version0.2-4 Date2013-12-20 Titlemultinomiallogitmodel DependsR(>=2.10),Formula,maxLik Importsstatmod,zoo,MASS,lmtest Suggestscar,nnet,lattice,AER DescriptionEstimationofthemultinomiallogitmodel LicenseGPL(>=2)
need to add the mlogit package, since it is not a default package supplied with the system. Start R, then do P a c k a g e s - > In s ta ll p a c k a g e (s ) and follow the prompts. 1.1 Some general tips Somenotesabout using R: ...
问使用toLatex()或xtable()将mlogit摘要结果导出到LatexEN问题是,xtable现在不能处理像summary.mlogit...
(仅供参考)mlogit-估计多项logit模型(multinomial-logit-model)