Re: [R] path analysis

From: Manel Salamero <10133msb_at_comb.es>
Date: Mon 15 Aug 2005 - 03:34:27 EST


This solves part of my problem with the independent ordinal variables, but my dependent variable is truly categorial (illness/no illness). Polychoric correlation implies that data are continuous, which in not the case. Is possible to implement logistic regression in the path model?

Thanks,

Manel Salamero

Dear Manel,

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of
> SALAMERO BARO, MANUEL
> Sent: Saturday, August 13, 2005 2:02 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] path analysis
>
> Someone knows if it is possible to perform a path analysis
> with sem package (or any other) to explain a dependent
> *dichotomus* variable?
>

Yes -- you can use the hetcor() function in the polycor package to generate a correlation matrix and boot.sem() in the sem package to get standard errors or confidence intervals. Make sure that the dichotomous variables are represented as factors. See ?boot.sem for an example.

I hope this helps,
 John



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Aug 15 03:32:32 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:49 EST