| getparam.mix | R Documentation |
Present parameters of general location model in an understandable format.
getparam.mix(s, theta, corr=FALSE)
s |
summary list of an incomplete normal data matrix created by the
function |
theta |
list of parameters such as one produced by the function |
corr |
if |
if corr=FALSE, a list containing the components pi,
mu and sigma; if
corr=TRUE, a list containing the components pi, mu,
sdv, and r.
The components are:
pi |
array of cell probabilities whose dimensions correspond to the
columns of the categorical part of $x$. The dimension is
|
mu |
Matrix of cell means. The dimension is |
sigma |
matrix of variances and covariances corresponding to the continuous
variables in |
sdv |
vector of standard deviations corresponding to the continuous
variables in |
r |
matrix of correlations corresponding to the continuous
variables in |
In a restricted general location model, the matrix of means is
required to satisfy t(mu)=A%*%beta for a given design matrix
A. To obtain beta, perform a multivariate regression
of t(mu) on A — for
example, beta <- lsfit(A, t(mu), intercept=FALSE)$coef.
Schafer, J. L. (1996) Analysis of Incomplete Multivariate Data. Chapman & Hall, Chapter 9.
prelim.mix, em.mix, ecm.mix,
da.mix, dabipf.mix.
data(stlouis)
s <- prelim.mix(stlouis,3) # do preliminary manipulations
thetahat <- em.mix(s) # compute ML estimate
getparam.mix(s, thetahat, corr=TRUE)$r # look at estimated correlations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.