Displaying 1 result from an estimated 1 matches for "lgtdata".
Did you mean:
latdata
2011 Aug 04
0
Problems with Z in rhierMnlRwMixture using bayesm
...empts 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 from the variables included in the ?Demog?
spreadsheet columns 3 to 9 which includes the demographic variables of the
respondents. Then the rbind matches these columns with the ids in the
lgtdata...