buildScaleMat: Build Scale Matrix

Description Usage Arguments Value Examples

View source: R/buildScaleMat_function.R

Description

This function builds a 2x2 scale matrix given xsd, ysd, corr, and df.

Usage

1
buildScaleMat(xsd, ysd, r, df)

Arguments

xsd

A positive number representing the standard deviation of x.

ysd

A positive number representing the standard deviation of x.

r

A number between -1 and 1 representing the correlation of x and y.

df

Integer greater than 3, representing degrees of freedom with df=Inf implying normal.

Value

Returns a 2x2 matrix oftened used to give scaling parameters to rmt.

Examples

1
2
buildScaleMat( 1,1,0,Inf) #normal 
buildScaleMat( 1,1,0,4) #t with df =4

senresearch/lcest documentation built on Jan. 14, 2022, 5:29 p.m.