Displaying 1 result from an estimated 1 matches for "olddelta".
Did you mean:
olddata
2011 Aug 04
0
Problems with Z in rhierMnlRwMixture using bayesm
...rMnlRwMixture in the bayesm package for the analysis of data
from a choice experiment. I am trying to follow the margarine example set
out in the bayesm manual (p.28). However, after several attempts I keep
getting an error message with regards to my Z matrix as below.
> Error in Z %*% t(matrix(olddelta, ncol = nz)) :
>requires numeric/complex matrix/vector arguments
I think the problem is arising from the following lines in the code that I
am running.
>Z=NULL
>nlgt=length(lgtdata)
>for(i in 1:nlgt) {
>Z=rbind(Z,Demog[Demog[,1]==lgtdata[[i]]$id,3:9])
I am creating a Z matrix fro...