少なくとも 1 つの変数がクラスから独立して推定されるモデルを作成する際に問題があるため、すべてのクラスで 1 つの同じ係数を使用します。どうすればこれを行うことができますか?R パッケージ gmnl を使用しています。
install.packages("gmnl")
library(gmnl)
library(mlogit)
#browseURL("https://cran.r-project.org/web/packages/poLCA/index.html")
## Examples using the Fishing data set from the AER package
data("Electricity", package = "mlogit")
Electr <- mlogit.data(Electricity, id.var = "id", choice = "choice",
varying = 3:26, shape = "wide", sep = "")
Elec.lc <- gmnl(choice ~ pf + cl + loc + wk + tod + seas| 0 | 0 | 0 | 1,
data = Electr,
subset = 1:3000,
model = 'lc',
panel = TRUE,
Q = 2)
summary(Elec.lc)
クラスから独立して変数 pf、cl、loc、wk、tod、または seas の 1 つをどのようにモデル化しますか? ありがとうございました!