Skip to content

data.frame error using sem package

2 messages · Suzanne Witt, Uwe Ligges

#
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 number of rows: 6, 0
In addition: Warning message:
Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
in: sem.default(ram = ram, S = S, N = N, param.names = pars,  
var.names = vars,


Thank you,

Suzanne
#
Suzanne Witt wrote:
It is almost impossible to help if you do not specify a toy example that 
shows how you produced that error message.
Please read the psoting guide which tells you how to specify such 
examples most appropriately in order to get a good answer.

Uwe Ligges