Re: [R] structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...

2014-09-04 Thread John Fox
help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Michele Silva > Sent: Thursday, September 04, 2014 2:58 PM > To: r-help@r-project.org > Subject: Re: [R] structural equation modeling in sem, error, The model > has negative degrees of freedom = -3, and

Re: [R] structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...

2014-09-04 Thread Michele Silva
Dear Prof. John, I'm trying to solve the following model in R, but I getting error about the degree of freedom. As I don't have much experience, could you please explain to me what is the problem? I'm studying the influence of several soil parameters (pH, NH4, OM, Moisture) on the abundance of

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-11-07 Thread Joshua Wiley
Hi, Your question is so broad as to be unanswerable, but see the help pages for the function from both packages. Here is how you can load them both and then look at the help for a specific package: require(sem) require(lavaan) help("sem", package = "sem") help("sem", package = "lavaan") If a p

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-11-06 Thread loyolite270
I am new to both sem and lavaan package ... I dint exactly get the difference between sem from sem package and sem from lavaan package... , -- View this message in context: http://r.789695.n4.nabble.com/Structural-equation-modeling-in-R-lavaan-sem-tp3409642p3997527.html Sent from the R help ma

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-16 Thread jouba
Dear all, when we have to do an exploration of our data with SEM So this is a lot of possibilities’ there isn’t programms done in order to test theses models Antra EL MOUSSELLY Date: Tue, 5 Apr 2011 09:49:08 -0500 From: ml-node+3428265-1156197921-225...@n4.nabble.com To: antr.

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-05 Thread jouba
Thanks a lot Antra EL MOUSSELLY Date: Tue, 5 Apr 2011 09:49:08 -0500 From: ml-node+3428265-1156197921-225...@n4.nabble.com To: antr...@hotmail.com Subject: Re: Structural equation modeling in R(lavaan,sem) On 04/04/2011 07:14 PM, jouba wrote: > > > Thanks you for your response > For

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-05 Thread yrosseel
On 04/04/2011 07:14 PM, jouba wrote: Thanks you for your response For lavaan package can i have more information about this example you have applied in the section 7 the meanings of The variables (c1,c2,c3,c4, i ,s ,x1,x2) I think i have need more information to learn more about how able to

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-04 Thread jouba
Thanks you for your response For lavaan package can i have more information about this example you have applied in the section 7 the meanings of The variables (c1,c2,c3,c4, i ,s ,x1,x2) I think i have need more information to learn more about how able to apply growth model in my data (long

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-04 Thread yrosseel
On 04/03/2011 09:38 PM, jouba wrote: Daer all, I have a question concerning longitudinal data: When we have a longitudinal data and we have to do sem analysis there is in the package lavaan some functions,options in this package that help to do this or we can treat these data like non longitudin

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-03 Thread Jeremy Miles
On 3 April 2011 12:38, jouba wrote: > > Daer all, > I have a question concerning longitudinal data: > When we have a longitudinal data and we have to do sem analysis there is in > the package lavaan some functions,options in this package that help to do > this or we can treat these data like non

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-04-03 Thread jouba
Daer all, I have a question concerning longitudinal data: When we have a longitudinal data and we have to do sem analysis there is in the package lavaan some functions,options in this package that help to do this or we can treat these data like non longitudinal data Thanks you a lot Antr

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-30 Thread yrosseel
On 03/29/2011 10:49 PM, jouba wrote: Dear all I have an error mesage « error message : the MLM estimator can not be used when data are incomplete » When i use the function sem(package lavaan) and when i fill the paramters estimator and missing estimator="MLM", missing="ml" i understa

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-29 Thread jouba
Dear all I have an error mesage « error message : the MLM estimator can not be used when data are incomplete » When i use the function sem(package lavaan) and when i fill the paramters estimator and missing estimator="MLM", missing="ml" i understand by this that i am not allowed to

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-29 Thread jouba
Ok thanka lot you for your response Antra EL MOUSSELLY Date: Tue, 29 Mar 2011 13:31:32 -0700 From: ml-node+3416220-556418632-225...@n4.nabble.com To: antr...@hotmail.com Subject: Re: Structural equation modeling in R(lavaan,sem) sem (the package) documentation is not intended to teach y

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-29 Thread Jeremy Miles
sem (the package) documentation is not intended to teach you how to do SEM (the technique) (there's very little R documentation that is intended to teach you how to do a particular statistical technique). There are several good books out there, but here's a free access journal article, which will

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-29 Thread jouba
Dear all, There is some where documentation to understand all indices in the output of the function sem(package lavaan ) ?? for example Chi-square test baseline model, Full model versus baseline model, Loglikelihood and Information Criteria, Root Mean Square Error of Approximation, Standardized R

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-29 Thread jouba
Effectively in this situation I am working with the function sem in the package sem I will try this parameter fix.c Thanks a lot Antra EL MOUSSELLY Date: Mon, 28 Mar 2011 12:42:31 -0700 From: ml-node+3412847-1368787395-225...@n4.nabble.com To: antr...@hotmail.com Subject: Re: Struct

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-29 Thread jouba
i am working with the same data with the two sem functions in packages lavaan and sem the manner how description of the model are differnt for the the funcion in sem and the function sem in lavaan Thanks a lot Antra EL MOUSSELLY Date: Mon, 28 Mar 2011 12:33:46 -0700 From: ml-node+

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-28 Thread John Fox
Dear jouba, I think you're using the sem() function in the sem package. I'm not sure that I understand your question, but I think it is why you need to specify the variance of the exogenous variable x1 as a parameter. The answer is that it is a parameter to be estimated from the data, but you c

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-28 Thread Jeremy Miles
On 28 March 2011 09:00, jouba wrote: Your syntax is not very tidy. That makes it hard to check. > x1 <->x1, sigmma7, NA > for me this an exogen variable and i am not obliged to specify this > equation > > model.se<-specify.model() > x1->x2,gamm1,NA > x2->x3,gamm2,NA > x3>x4,gamm3,NA > That's

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-28 Thread jouba
Dear all , I am trying to run sem by an example with my data but i have problme with an exogen variable x1 so my examlpe is below when i add i the equation we have no pboblem but i don’t know why ?? x1 <->x1, sigmma7, NA for me this an exogen variable and i am not obliged to specify thi

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-28 Thread yrosseel
On 03/28/2011 04:18 AM, jouba wrote: Jeremy thanks a lot for your response I have read sem package help and I currently reading the help of lavaan I see that there is also an other function called lavaan can do the SEM analysis So I wonder what is the difference between this function and the sem

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-27 Thread jouba
Jeremy thanks a lot for your response I have read sem package help and I currently reading the help of lavaan I see that there is also an other function called lavaan can do the SEM analysis So I wonder what is the difference between this function and the sem function Also I am wondering in the

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-03-27 Thread Jeremy Miles
On 27 March 2011 12:12, jouba wrote: > I am a new user of the function sem in package sem and lavaan for > structural > equation modeling > 1. I don’t know what is the difference between this function and CFA > function, I know that cfa for confirmatory analysis but I don’t know what > is the di

Re: [R] structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...

2010-10-25 Thread John Fox
Dear Alex, Your problem doesn't have much to do with the sem package. The model that you're trying to estimate is grossly underidentified. The model has 9 parameters to estimate and there are only 3*4/2 = 6 covariances among the 3 observed variables, hence the -3 df. There are also no exogenous va

Re: [R] structural equation modeling

2009-10-28 Thread Ista Zahn
There is a package in beta testing now that looks interesting: http://openmx.psyc.virginia.edu/installing-openmx -Ista On Wed, Oct 28, 2009 at 10:37 AM, Robert Terwilliger wrote: > Dear R-help, > > I am interested in using structural equation modeling. > > Just getting started with it, but I'm

Re: [R] structural equation modeling

2009-10-28 Thread Viechtbauer Wolfgang (STAT)
There is the 'sem' package: http://cran.r-project.org/web/packages/sem/index.html The task views (http://cran.r-project.org/web/views/) are often a good place to start when looking for particular techniques/methods. Best, -- Wolfgang Viechtbauerhttp://www.wvbauer.com/ D

Re: [R] structural equation modeling

2009-10-28 Thread Duncan Murdoch
On 10/28/2009 10:37 AM, Robert Terwilliger wrote: Dear R-help, I am interested in using structural equation modeling. Just getting started with it, but I'm looking for suggestions for packages. As an aside, what's the best way for looking for packages at CRAN? The task views are great: see