File: mkcov.Rd

package info (click to toggle)
r-cran-gss 2.1-3-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,740 kB
  • ctags: 1,400
  • sloc: fortran: 5,241; ansic: 1,388; makefile: 1
file content (51 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\name{mkcov}
\alias{mkcov}
\alias{mkcov.arma}
\alias{mkcov.long}
\alias{mkcov.known}
\title{
    Generating Covariance for Correlated Data
}
\description{
    Generate entries of covariance functions for correlated data.
}
\usage{
mkcov.arma(p, q, n)
mkcov.long(id)
mkcov.known(w)
}
\arguments{
    \item{p}{Order of AR terms.}
    \item{q}{Order of MA terms.}
    \item{n}{Dimension of covariance matrix.}

    \item{id}{Factor of subject ID.}

    \item{w}{Covariance matrix; only the upper triangular part is used.}
}
\details{
    \code{mkcov.arma} generates covariance functions for ARMA(p,q)
    model.

    \code{mkcov.long} generates covariance functions for longitudinal
    data.

    \code{mkcov.known} allows one to use a known covariance matrix in
    \code{ssanova9}.
}
\value{
    A list of three components.
    \item{fun}{Covariance matrix to be evaluated through
    \code{fun(gamma,env)} or \code{fun(env)}.}
    \item{env}{Constants in covariance function.}
    \item{init}{Initial values for correlation parameters.}
}
\note{
    One may pass \code{list(fun=...,env=...,init=...)} directly to the
    argument \code{cov} in calls to \code{\link{ssanova9}}, or make use
    of the \code{mkcov.x} functions through
    \code{cov=list("arma",c(p,q))}, \code{cov=list("long",id)}, or
    \code{cov=list("known",w)}.
}
\author{Chong Gu, \email{chong@stat.purdue.edu}}
\keyword{internal}