You are here

Revision of mxCI-help from Fri, 12/03/2010 - 15:05

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

Wiki home page

Confidence Intervals
To request confidence intervals from a model, simply include a call to mxCi in the model, and add "intervals=TRUE" to the call to mxRun()
i.e.

themodel <- mxModel(themodel, mxCI(c('model.A')))
mxRun(themodel, intervals=TRUE)

The interval and type defaults give the 95% upper and lower CIs that most users will want.

the reference list is quite intelligent, and can take: matrix or algebra names, matrices with column and row indices. So the following are all fine, as long as they are legal objects found in the model or its submodels.

  mxCI(c('model.A', 'top.A[,1]', 'myAlg'))