[R] poLCA and conditional dependence

2012-02-16 Thread Suranga Kasthurirathne
Hi everyone / poLCA gurus,

I'm facing a problem regarding conditional dependence and poLCA.
Using a few data sets composed of only 1's and 2's, i'm able to do a latent
class analysis for independent data columns using poLCA.

The commands I use to do this are something like,

bcs = read.csv(data.csv, header=T);
response = data.frame(bcs[0:5]);
names(response)
attach(response)
f = cbind(A,B,C,D,E)~1
poLCA(f,data=response, nclass=2);

However, my question is, how must I modify this for conditional dependence
? assuming that some columns are dependent or each other, and that instead
of just 1 and 2, dependent columns have been merged and may bear values
1,2,3 or 4, how should I modify the above command for latent class analysis
?

Please advice...

-- 
Thanks and Best Regards,

Suranga

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] poLCA and conditional dependence

2012-02-09 Thread Suranga Kasthurirathne
Dear all,

I'm an Sri Lankan undergraduate student. I'm also a total newbie to R.

My aim is to use the poLCA package to do a latent class analysis.
I found the documentation very helpful, but need to make a small
clarification that has stumped me awhile.

In my work, I need to make provision for conditional dependence. I'm told
that poLCA lets you do that. Unfortunately, I couldn't find a
specific example on how to do this.

However, I did find a reference to latent class regression using
 cbind(Y1,Y2,Y3)~X1+X2*X3 etc.

Forgive my ignorance, but is this the same as conditional dependence ? I
dont think so


-- 
Best Regards,

Suranga

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.