Displaying 20 results from an estimated 5000 matches similar to: "sem R: singular and Could not compute QR decomposition of Hessian"
2010 Aug 25
1
SEM : Warning : Could not compute QR decomposition of Hessian
Hi useRs,
I'm trying for the first time to use a sem. The model finally runs,
but gives a warning saying :
"In sem.default(ram = ram, S = S, N = N, param.names = pars, var.names
= vars, : Could not compute QR decomposition of Hessian.
Optimization probably did not converge. "
I found in R-help some posts on this warning, but my attemps to modify
the code didn't change
2012 Mar 04
1
Could not compute QR decomposition of Hessian.
Hi,
I created the model below, which returns me the following warning message:
In sem.default(ram = ram, S = S, N = N, param.names = pars, var.names =
vars, :
Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
######### Model ########
mDPDF =
data.frame(mj1,mj2,mj3,mj4,mj5,eL1,eL2,eL3,eL4,eL5,aC1,aC2,aC3,aC4,disR1,disR2,disR3,disR4,disR5,
2009 Aug 11
0
SEM decomposition of Hessian
I'm trying to run an SEM, but I keep getting the following error message.
In sem.default(ram = ram, S = S, N = N, param.names = pars, var.names = vars, :
Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
I have 4 latent variables (plant, AMF, abiotic, and soilAgg) with 2 or 4 indicator variables for each latent variable.My model is specified as:
>
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)
2006 Jul 13
1
sem question
Dear all,
I am trying to estimate simultaneous equation model concerning growth in russian regions.
I run the analysis by means of FIML in R sem package.
I am not familiar with SEM yet, but I've just got several suitable estimated specifications.
Nevertheless, sometimes R gives the following warning message:
Warning message:
Negative parameter variances.
Model is probably underidentified.
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
2013 Feb 09
1
Troubleshooting underidentification issues in structural equation modelling (SEM)
Hi all, hope someone can help me out with this.
Background Introduction
I have a data set consisting of data collected from a questionnaire that I
wish to validate. I have chosen to use confirmatory factor analysis to
analyse this data set.
Instrument
The instrument consists of 11 subscales. There is a total of 68 items in
the 11 subscales. Each item is scored on an integer scale between 1 to 4.
2013 Jul 22
1
Error with sem function df = -6
Hello all,
I have an issue where I am generating data and trying to confirm the
estimates using a sem. I keep getting an error about the degree of freedom
being negative "Error in sem.default(ram, S = S, N = N, raw = raw, data =
data, pattern.number = pattern.number, : The model has negative degrees of
freedom = -6"
Can someone explain this error or tell me what is wrong with my
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,
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
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,
2011 Feb 14
4
sem problem - did not converge
Someone can help me? I tried several things and always don't converge
# Model
library(sem)
dados40.cov <- cov(dados40,method="spearman")
model.dados40 <- specify.model()
F1 -> Item11, lam11, NA
F1 -> Item31, lam31, NA
F1 -> Item36, lam36, NA
F1 -> Item54, lam54, NA
F1 -> Item63, lam63, NA
F1 -> Item65, lam55, NA
F1 -> Item67, lam67, NA
F1 ->
2008 Sep 18
2
Difficulty understanding sem errors / failed confirmatory factor analysis
Hello,
I'm trying to fit a pretty simple confirmatory factor analysis using
the sem package. There's a CFA example in the examples, which is helpful,
but the output for my (failing) model is hard to understand. I'd be
interested in any other ways to do a CFA in R, if this proves troublesome.
The CFA is replicating a 5 uncorrelated-factor structure (for those
interested, it is a
2005 Oct 06
2
data.frame error using sem package
I keep getting this error when I try to use the sem package. I and
another person who has successfully used the sem package for similar
analysis (fMRI effective connectivity) cannot figure out what is
wrong with my code. I would appreciate any suggestions.
The error message:
Error in data.frame(object$coeff, se, z, 2 * (1 - pnorm(abs(z))),
par.code) :
arguments imply differing
2007 Apr 09
3
sem vs. LISREL: sem fails
I am new to R.
I just tried to recreate in R (using sem package and the identical input data) a solution for a simple measurment model I have found before in LISREL. LISREL had no problems and converged in just 3 iterations.
In sem, I got no solution, just the warning message:
"Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
in: sem.default(ram =
2012 Mar 12
1
SEM eigen value error 0 X 0 matrix
Using R-studio, I am trying to run a structural equation model and I am
running into problems with testing my primary model. Once I specify
everything and try to run it I get this error:
Error in eigen(S, symmetric = TRUE, only.values = TRUE) : 0 x 0 matrix
And when I look at the object for my primary model in my workspace, which is
created after I specify it, it lists all my model components,
2011 Nov 08
1
Help with SEM package: Error message
Hello.
I started using the sem package in R and after a lot of searching and trying
things I am still having difficulty. I get the following error message when
I use the sem() function:
Warning message:
In sem.default(ram = ram, S = S, N = N, param.names = pars, var.names =
vars, :
Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
I started with a
2004 Nov 28
2
Tetrachoric and polychoric ceofficients (for sem) - any tips?
About two years ago there was a thread about this which suggested that at
that time nobody had these coefficients ready to go.
(a) has anyone in the meanwhile programmed them?
(b) I think I can see how to do the tetrachoric one with mvtnorm on similar
lines to an example on the help page so will try that if nobody else
already has
(c) looking at the polychoric one makes me realise yet again
2009 May 22
1
Confirmatory factor analysis problems using sem package (works in Amos)
Hello all,
I'm trying to replicate a confirmatory factor analysis done in Amos. The
idea is to compare a one-factor and a two-factor model. I get the following
warning message when I run either model:
"Could not compute QR decomposition of Hessian.
Optimization probably did not converge."
I have no idea what to do here. I believe posters reported the same
problem. It seems
2009 Feb 02
1
Fit indexes in SEM with categorical data + ML estimation
Hello,
It has been found that SEM analysis using polychoric correlations + maximum
likelihood estimator produces incorrect test statistics and standard errors
(e.g., Flora, D. B., & Curran, P. J. (2004). An Empirical Evaluation of
Alternative Methods of Estimation for Con?rmatory Factor Analysis With
Ordinal Data. Psychological Methods, 9(4), 466-491).
Standard errors can be dealt with by