Displaying 20 results from an estimated 10000 matches similar to: "Fitting multinomial response in structural equation"
2011 Mar 27
2
Structural equation modeling in R(lavaan,sem)
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 difference between confirmatory analysis and structural equation
modeling in the package lavaan.
2. I have data that I want to analyse but I have some
2010 Oct 25
1
structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...
Hi all,
I am attempting to learn my way through the sem package by constructing
a simple structural model for some of my data on bird diversity,
abundance, and primary productivity.
I have constructed a covariance matrix between these variables as per
the following:
>S_matrix = matrix(c(
>+ 0.003083259, 0, 0,
>+ 0.143870284, 89.7648490, 0,
>+ 0.276950919,
2007 Apr 15
1
Fit sem model with intercept
Hi - I am trying to fit sem model with intercepts. Here is what I have in my model.
Exogeneous vars: x1 (continous), x2 (ordinal), x3 (ordinal), x4(continuous)
Endogeneous vars: y1 (continuous), y2 (ordinal), y3 (ordinal)
SEM model:
x1 -> eta1; x2 -> eta1; x3 -> eta2; x4 -> eta2; eta1 -> y1, eta1 -> y2, eta2 -> y2, eta2 -> y3
However, in these arrow models, I
2007 Jan 24
1
solving a structural equation model using sem or other package
I am trying to work my way through the book "Singer, JD and Willett, JB, Applied Longitudinal Data Analysis. Oxford University Press, 2003" using R. I have the SAS code and S-Plus code from the UCLA site (doesn't include chapter 8 or later problems). In chapter 8, there is a structural equation/path model which can be specified for the sem package as follows
S <- cov(al2)
2002 Aug 13
1
Ex ante forecasting from structural equation models (SEM package)
Dear Helplist,
I want to produce forecasts from a structural equation model. With the SEM
package the model setup and its estimation is possible. However, I have not
figured out how to obtain ex ante forecasts, i.e. applying the Gauss-Seidel
algorithm to the estimated structural equations for provided values of the
exogenous variables (i.e.: y_t = -inv(A)*B*x_t).
Does anyone know if the there is
2005 Dec 01
1
Error in structural equation model - "The model has negative degrees of freedom"
Hi
I am running a structural equation model with R using the sem command; am
getting the following error:
"Error in sem.default : The model has negative degrees of freedom = -4"
My model is as follows:
s_model = specify.model()
x1->m1, b1,NA
x2->m1, b2,NA
x3->m2, b3,NA
x4->m2, b4,NA
x5->m2, b5,NA
x6->m2, b6,NA
m1->y, a1,NA
m2->y, a2,NA
m1<->m1, v1,NA
2005 Mar 09
2
Structural equation models with R
Hello useRs,
I`m running structural equation models with R, but for one of my models the
below error message apears. I`m trying to change startvalues but without
success. The manual for sem package did not help me. Does anyone knows how to
change startvalues for iteration in sem package? Or it can be another problem
with the model?
Error in startvalues(S, ram, debug = debug, tol = start.tol)
2009 Nov 25
4
Structural Equation Models(SEM)
Hi R-colleagues.
In the sem-package
i have a problem to introduce hidden variables.
As a simple example I take an ordinary factor analysis.
The program:
cmat=c(0.14855886, 0.05774635, 0.08003300, 0.04900990,
0.05774635, 0.18042029, 0.11213013, 0.03752475,
0.08003300, 0.11213013, 0.24646337, 0.03609901,
0.04900990, 0.03752475, 0.03609901, 0.31702970)
2007 Apr 09
1
Dealing with large nominal predictor in sem package
Hi,
I am using tsls function from sem package to estimate a model which includes large number of data. Among its predictors, it has a nominal data which has about 10 possible values. So I expand this parameter into 9-binary-value predictors with the coefficient of base value equals 0. I also have another continuous predictor.
The problem is that, whenever I run the tsls, I will get 'System
2004 Feb 26
2
Structural Equation Model
Hello all!
I want to estimate parameters in a MIMIC model. I have one latent
variable (ksi), four reflexive indicators (y1, y2, y3 and y4) and four
formative indicators (x1, x2, x3, x4). Is there a way to do it in R? I
know there is the SEM library, but it seems not to be possible to
specify formative indicators, that is, observed exogenous variables
which causes the latent variable.
Thanks,
[R-pkgs] New package: `lavaan' for latent variable analysis (including structural equation modeling)
2010 May 24
2
[R-pkgs] New package: `lavaan' for latent variable analysis (including structural equation modeling)
Hi Yves
lavaan looks like a very nice package. From the tutorial introduction
I see you create path diagrams for some of the models you describe.
How did you do this? I don't see a function for this in the package.
I know there is a path.diagram function in the sem package that uses
dot to draw the diagram, but I've always found the layouts from dot
somewhat strange for path diagrams
2012 Nov 04
1
structural equations using sem package
Hello
I am using sem to look at the direct effect of one variable on another but i am uncertain if i am progressing correctly.
An example:
covar1<-? matrix(c(0.4,-0.2,3,-0.2 , 0.3,-2 , 3 ,-2 , 60), nrow=3,byrow=T)
rownames(covar1)<-colnames(covar1)<-c("endo","exo","med")
path1<-matrix(c(? ? "exo -> endo",? "g1", NA,
2009 Oct 28
3
structural equation modeling
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?
--
Robert Terwilliger
Biomedical Physicist
Laboratory of Neurocognitive Development
Western Psychiatric Institute and Clinic
University of Pittsburgh Medical Center
Loeffler
2007 Mar 16
0
Segmentation fault in estimating structural equation models with the SEM package.
Dear R-users,
I am running a large number of simulations and estimating a
structural equation model for each one using the SEM package. Each
run of my program has around 8000 simulations. Most of the time the
program completes all of them correctly but sometimes I get a
segmentation fault in the sem routine and my program stops with the
following error message:
> *** caught
2005 Jun 09
1
Forecasting with macroeconomic structural equations models?
Hello,
Is there a package or sample code that shows how to do ex ante
forecasts with a macroeconomic structural equations model? I looked
at the "sem" package, which lets you estimate e.g. Klein's model, but
I'm not sure how to make simulations using the full set of equations,
including the identities.
Thank you,
Ronaldo Carpio
rncarpio at yahoo.com
2010 Sep 16
0
problems trying to reproduce structural equation model using the sem package
Hello,
I've been unsuccessfully trying to reproduce a sem from Grace et al.
(2010) published in Ecological Monographs:
http://www.esajournals.org/doi/pdf/10.1890/09-0464.1
The model in question is presented in Figure 8, page 81. The errors
that I've been getting are:
1. Using a correlation matrix:
res.grace <- sem(grace.model, S = grace, N = 190)
Warning message:
In sem.default(ram
2003 May 24
1
Can Package SEM do mean structural analysis?
Hi.
I am wondering whether Package SEM can do with intercepts and
means in its structural analysis.
If it can not calculate, how can I make a supplemental function
in R?
Many thanks in advance.
--------========----------
Mitsuo Igarashi
mitsu5 at ruby.famille.ne.jp
2005 Dec 04
0
Error in structural equation model - "The model has negativedegrees of freedom"
Hi John
Thanks a lot for the reply.
Could you suggest how I can correct this problem? I tried using a
correlation matrix instead of raw moments, but still got the same error. I
also fixed parameters v1,v2,v3,a1 at 1; then it gave me the error that the
system is exatly singular.
To answer the points that you raised:
1. x1-x6 are not causes; they are just indicatiors. Does that change my
2005 Dec 04
0
FW: Error in structural equation model - "The model hasnegativedegrees of freedom"
Dear R-help list members,
I forgot to copy my reply to the r-help list. Here's most of it.
John
--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
--------------------------------
-----Original Message-----
From: John Fox [mailto:jfox at mcmaster.ca]
Sent: Sunday,
2012 Dec 03
2
Solving a multinomial gompertz partial differential equation in r
I haven't used r in quite a while but would like to get back into it. I
have a problem that I would like to solve with r. I have some multinomial
data that looks to follow an asymmetric sigmoidal growth pattern. Solving
a multinomial gompertz partial differential equation in r is what I’m after.
Would anyone be able to provide me the code and packages to do something
like this?
Regards,