construct_CovBlk: construct_CovBlk

Description Usage Arguments Value Examples

View source: R/construct_CovMat.R

Description

constructs the covariance matrix for multiple measurements of one cluster

Usage

1
construct_CovBlk(timepoints, sigma, tau)

Arguments

timepoints

numeric (scalar), number of timeperiods, Cl.e. dimension of blocks in covariance matrix

sigma

numeric (scalar or vector of length timepoints), residual error (usually of cluster means)

tau

numeric (scalar or vector of length timepoints), standard deviation of random intercepts, A vector of length *timepoints* is interpreted as a variing sd over time (also used for binomial outcomes).

Value

a block of a covariance matrix

Examples

1
construct_CovBlk(timepoints=5, sigma=2, tau=2)

PMildenb/SteppedPower documentation built on Dec. 7, 2018, 7:59 a.m.