Displaying 20 results from an estimated 9000 matches similar to: "parameter constraints in sem"
2012 May 04
1
sem error message
Hello, I tried to do a 'sem' analysis for data of how blueberry consumption
by birds is influenced by a pollution gradient, using distance and
vegetation structural and composition variables, but I got the following
error message:
Error in sem.default(ram = ram, S = S, N = N, param.names = pars, var.names
= vars, :
S must be a square triangular or symmetric matrix
This may be very
2011 Nov 07
0
new version 2.0-0 of the sem package
Dear R users,
Jarrett Byrnes and I would like to announce version 2.0-0 of the sem package
for fitting observed- and latent-variable structural equation models. This
is a general reworking of the original sem package (which is still available
on R-Forge as package sem1).
Some highlights of sem 2.0-0 include:
o More convenient and compact model specification, including the default
automatic
2011 Nov 07
0
new version 2.0-0 of the sem package
Dear R users,
Jarrett Byrnes and I would like to announce version 2.0-0 of the sem package
for fitting observed- and latent-variable structural equation models. This
is a general reworking of the original sem package (which is still available
on R-Forge as package sem1).
Some highlights of sem 2.0-0 include:
o More convenient and compact model specification, including the default
automatic
2011 Nov 24
0
sem package (version 2.1-1)
Dear R users,
Version 2.1-1 of the sem package, for structural equation modeling, is now
on CRAN.
Unlike version 2.0-0, which was a major overhaul of the package, version
2.1-1 just sprinkles some syntactic sugar on it, introducing the
specifyEquations() and cfa() functions; specifyEquations() supports model
specification in equation (rather than path) format, and cfa() facilitates
compact
2011 Nov 24
0
sem package (version 2.1-1)
Dear R users,
Version 2.1-1 of the sem package, for structural equation modeling, is now
on CRAN.
Unlike version 2.0-0, which was a major overhaul of the package, version
2.1-1 just sprinkles some syntactic sugar on it, introducing the
specifyEquations() and cfa() functions; specifyEquations() supports model
specification in equation (rather than path) format, and cfa() facilitates
compact
2009 May 20
1
sem with categorical data
I am trying to run a confirmatory factor analysis using the SEM package. My
data are ordinal. I have read
http://socserv.mcmaster.ca/jfox/Misc/sem/SEM-paper.pdf.
When I apply the hetcor function, I receive the following error:
Error in checkmvArgs(lower = lower, upper = upper, mean = mean, corr = corr,
:
at least one element of 'lower' is larger than 'upper'
Example:
2012 Apr 15
0
version 3.0-0 of the sem now on CRAN
Dear R users,
Version 3.0-0 of the sem package is now on CRAN. From the package NEWS file:
o Compiled code for optimization.
o Added multi-group models.
o Modification indices for equality-constrained parameters.
o weights argument added to tsls().
o raw argument added to cfa().
Of these changes, the first two are the most significant, and the first --
the use of compiled code to
2007 Sep 19
1
SEM - standardized path coefficients?
Dear list members,
In sem, std.coef() will give me standardized coefficients from a sem model.
But is there a trick so that path.diagram can use these coefficients rather
than unstandardized ones?
Thanks
Steve Powell
From: John Fox <jfox_at_mcmaster.ca>
Date: Wed 28 Feb 2007 - 14:37:22 GMT
Dear Tim,
See ?standardized.coefficients (after loading the sem package).
Regards,
John
John
2006 Jul 25
0
Version 0.9-4 of sem to CRAN
Dear Kurt,
I've uploaded a new version (0.9-4) of the sem package to CRAN.
I hope that everything is well with you.
John
--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
_______________________________________________
R-packages mailing list
R-packages at
2007 Mar 02
1
Help with faster optimization for large parameter problem
Hello all,
I have a large parameter problem with the following very simple likelihood
function:
fn<-function(param) {
x1<-param[1:n]
g1<-param[(n+1):(2*n)]
beta<-param[(2*n+1):(2*n+k)]
sigma2<-param[2*n+k+1]^2
meang1sp<-mean(g1[sp])
mu<-beta%*%matrix(x1,1,n)-(g1[sp]-meang1sp)%*%matrix(g1,1,n)
return(sum((ydc-mu)^2)/(2*sigma2) + n*k*log(sqrt(sigma2)) +
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,
2002 Jul 18
1
sem: incorrect parameter estimates
Hello.
I am getting results from sem that are not correct (that's assuming
that the results from my AMOS 4.0 software are correct). sem does not
vary some of the parameters substantially from their starting values,
and the final estimates of those parameters as well as the model
chisquare value are incorrect. I've attached some code that
replicates the problem. The parameters in
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
2004 Apr 21
2
Question on CAR appendix on NLS
The PDF file on the web, which is an appendix on nonlinear regression
associated with the CAR book, is very nice.
When I ran through the code presented there, I found something
odd. The code does a certain model in 3 ways: Vanilla NLS (using
numerical differentation), Analytical derivatives (where the user
supplies the derivatives) and analytical derivatives (using automatic
differentiation). The
2010 Mar 25
0
help with breaking loops used to fit covariates in nlme model building procedure
Dear All
I'm attempting to speed up my model building procedure, but need some help with the loops I've created...please bear with me through the explanation!
My basic model call is something like:
m0sulf.nlme<-nlme(conc~beta0*exp(-beta1*day)+beta2*exp(-beta3*day),
data=m0sulf,
fixed=(beta0+beta1+beta2+beta3~1),
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
2011 Feb 08
1
SEM: question regarding how standard errors are calculated
Sorry if this question has been asked previously, I searched but found
little. There also doesn't seem to be a dedicated SEM list-serv so hopefully
this will find its way to the appropriate audience.
In discussing SEM with a colleague I mentioned that a model they were
fitting in AMOS was equivalent to a linear regression and that the
coefficients would be the same. This of course was the
2008 Apr 01
1
SEM with a categorical predictor variable
Hi,
we are trying to do structural equation modelling on R. However, one of our
predictor variables is categorical (smoker/nonsmoker). Now, if we want to
run the sem() command (from the sem library), we need to specify a
covariance matrix (cov). However, Pearson's correlation does not work on the
dichotomous variable, so instead we produced a covariance matrix using the
Spearman's (or
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
2009 Mar 09
1
[sem package] path.diagram() ignores the edge.label argument ..?
hi,
I plot path diagrams with the path.diagram() function of the sem
package in combination with the graphviz application.
Now I want the graphviz code for a path-plot with the actual
standardized coefficients on the arrows (not the names).
I tried to add edge.labels="values" as an argument to path.diagram()
but it's just ignored.
can anyone help me on that?
p.s.;