Attachment | Size |
---|---|
test1.pdf | 27.3 KB |
Hi,
I want to fit a model by using the starting values as the parameter estimates. This can quickly be done by treating them as fixed parameters. However, I also want to get some standard errors on these estimates though the starting values may not be the optimal solution.
I can fix the starting values as the estimates with mxRun(my.model, useOptimizer = FALSE)
. But it does not provide any standard errors. Attached is an example. Any suggestions? Thanks in advance.
Mike
Append this to your script:
This block of code creates a custom compute plan, which happens to be the default compute plan, except without the gradient-based optimization step (because we want the free parameters to stay at their start values) and the Hessian-quality step (because we don't expect the Hessian to "look good" when the free parameters are not at their MLEs).
If for some reason you want to run
uniModel3
orfit3
with the default compute plan, you need to do, e.g.,first.
Thanks, it is very helpful.
Glad I could help!