mkcov | R Documentation |
Generate entries of covariance functions for correlated data.
mkcov.arma(p, q, n)
mkcov.long(id)
mkcov.known(w)
p |
Order of AR terms. |
q |
Order of MA terms. |
n |
Dimension of covariance matrix. |
id |
Factor of subject ID. |
w |
Covariance matrix; only the upper triangular part is used. |
mkcov.arma
generates covariance functions for ARMA(p,q)
model.
mkcov.long
generates covariance functions for longitudinal
data.
mkcov.known
allows one to use a known covariance matrix in
ssanova9
.
A list of three elements.
fun |
Covariance matrix to be evaluated through
|
env |
Constants in covariance function. |
init |
Initial values for correlation parameters. |
One may pass list(fun=...,env=...,init=...)
directly to the
argument cov
in calls to ssanova9
, or make use
of the mkcov.x
functions through
cov=list("arma",c(p,q))
, cov=list("long",id)
, or
cov=list("known",w)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.