search for: choiceatt

Displaying 1 result from an estimated 1 matches for "choiceatt".

Did you mean: choicea
2011 Aug 04
0
Problems with Z in rhierMnlRwMixture using bayesm
...e choice attributes). I am not sure if I am interpreting this code correctly or if I need to amend it. Can anyone help me with the interpretation of the below and whether I would need to specify it differently? Also below is the full code that I am running. select= c(1,2,3) id=levels(as.factor(ChoiceAtt[,1])) lgtdata=NULL nlgt=length(id) p=length(select) ind=1 for (i in 1:nlgt) { nobs=sum(ChoiceAtt[,1]==id[i]) data=ChoiceAtt y=data[,2] names(y)=NULL X=createX(p=p,na=1,Xa=data[,3:5],nd=NULL,Xd=NULL,INT=TRUE,base=1) lgtdata[[ind]]=list(y=y,X=X,id=id[i]); i...