search for: useritem

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

Did you mean: user_mem
2012 Jul 17
2
Problem creation tensor
...if you're talking about working/living occupation) so you can't create a tensor n users x m items x 21 occupations but you can build the contingencies of preferences m items x 21 occupations x 5 ratings One way to build your tensor m x 21 x 5 is: M1 is the first occupation (users x m) ... UserItem <-rbind(M1,M2, ...M21) m=1682 for (j in 1:m){ UserItem[,j] =factor(UserItem[,j],levels=1:5) } occ=factor(c(rep(1,dim(M1)[1]),rep(2,dim(M2)[1]), ...,rep(21,dim(M21)[1])),levels=1:21) Z <- array(rep(0,m*21*5),c(m,21,5), list(paste("item",1:m,sep=""),paste("Occ&qu...