Displaying 1 result from an estimated 1 matches for "aktdat".
2009 Sep 08
1
cbind formula definition
...yntax:
poLCA(formula, data)
and needs the following formula definition:
formula <- cbind(V1,V2,V3,...)
So far so good.
What I tried now was the following:
#Get "data" with the "read.table" fuction
data <- read.table("d:/ .....)
#Select cols to use in the analysis
aktDat <- data[2:15]
#get the names
names(aktDat)
#put them together in one string, comma as separation sign
bi <- paste(names(aktDat),collapse=",")
#use this string in the "f" function to bind the variables
formula <- cbind(bi)~1
#Calculate the modell
poLCA(formula, data)
bu...