Learn R Programming

PopED (version 0.7.0)

getfulld: Create a full D (between subject variability) matrix given a vector of variances and covariances. Note, this does not test matching vector lengths.

Description

Create a full D (between subject variability) matrix given a vector of variances and covariances. Note, this does not test matching vector lengths.

Usage

getfulld(variance_vector, covariance_vector = NULL)

Value

The full matrix of variances for the between subject variances

Arguments

variance_vector

The vector of the variances.

covariance_vector

A vector of the covariances. Written in column major order for the lower triangular matrix.

Examples

Run this code

getfulld(c(1,2,3))

getfulld(c(1,2,3),c(7,6,5))

Run the code above in your browser using DataLab