search for: mclgen

Displaying 3 results from an estimated 3 matches for "mclgen".

Did you mean: mcgen
2005 Apr 12
0
New version of "catspec" package
...t;special categorical" models. It also contains "ctab", a function for creating one-way, two-way, and multi-way percentage tables (nothing special there really). Ctab can now print more than one percentage type, as well as table marginals. The first special model in catspec is "mclgen". Mclgen restructures a data frame so a multinomial logistic model can be estimated using a condition logit program. Doing so provides much more flexibility for imposing restrictions on the response variable. The second special (set of) models is "sqtab", for estimating loglinear mo...
2005 Apr 12
0
New version of "catspec" package
...t;special categorical" models. It also contains "ctab", a function for creating one-way, two-way, and multi-way percentage tables (nothing special there really). Ctab can now print more than one percentage type, as well as table marginals. The first special model in catspec is "mclgen". Mclgen restructures a data frame so a multinomial logistic model can be estimated using a condition logit program. Doing so provides much more flexibility for imposing restrictions on the response variable. The second special (set of) models is "sqtab", for estimating loglinear mo...
2003 Jan 29
3
multinomial conditional logit models
...the dependent variable) * Each case must be identified by a strata variable (id) * Each duplicate must be identified by a variable indexing the choices (newy) * A dichotomous variable must indicate which duplicate corresponds with the respondent's choice (didep) I've done this as follows: mclgen <- function (datamat,catvar) { ncat <- nlevels(catvar) id<-1:length(catvar) datamat<-cbind(id,datamat) perschoice <-NULL for (i in 1:ncat) { perschoice<-rbind(perschoice,datamat) } perschoice<-perschoice[sort.list(perschoice$id),] perschoice$newy<-gl(ncat,1,length=...