construct_CovMat: construct_CovMat

Description Usage Arguments Value Examples

View source: R/construct_CovMat.R

Description

constructs a covariance matrix, a bloc diagonal matrix. Calls 'construct_CovBlk' for each block.

Usage

1
2
construct_CovMat(SumCl, timepoints, sigma, tau, family = gaussian(),
  N = NULL)

Arguments

SumCl

total number of clusters

timepoints

numeric, scalar

sigma

numeric, residual error of cluster means if no N given. Else residual error on individual level

tau

numeric, standard deviation of random intercepts

family

distribution , not implemented

N

integer (vector), number of individuals per cluster. Defaults to 'rep(1,sum(Cl))' if not passed.

Value

a covariance matrix

Examples

1
construct_CovMat(SumCl=2,timepoints=3, sigma=list(c(1,2,2),c(1,1,2)),tau=list(c(.2,.1,.1),c(.2,.2,.1)),N=c(20,16))

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