Hessian wrong for R fit function
For an R fit function example, the Hessian comes back all zeros. I found this from thread http://openmx.psyc.virginia.edu/thread/2230
#------------------------------------------------
set.seed(135)
nobs <- 13
adat <- data.frame(x=rnorm(nobs))
dmod <- mxModel(
name='I will run fast on OpenMx',
mxMatrix(name='A', nrow=nobs, ncol=1, free=T, values=0.1),
mxMatrix(name='X', nrow=nobs, ncol=1, free=F, values=as.matrix(adat)),
mxAlgebra((X-A) %^% 2, name='Row'),
mxAlgebra(sum(Row), name='Red'),
mxFitFunctionAlgebra('Red')
)
- Read more about Hessian wrong for R fit function
- 3 comments
- Log in or register to post comments