trueRV: Calculation of the true r2 and explained variance v2 by...

View source: R/DataGen.R

trueRVR Documentation

Calculation of the true r2 and explained variance v2 by simulation

Description

Calculation of the true r2 and explained variance v2 by simulation

Usage

trueRV(nrep, p, beta, xsig, errsig, powx, powy, sd)

Arguments

nrep

simulation sample size

p

number of covariates

beta

regression coefficients

xsig

standard deviation of x variables

errsig

residual standard deviation

powx

power for x variable transformation

powy

power of y variable transformation

sd

square root decomposition of correlation matrix

Value

x covariates. y outcome variable


hychen-uic/TEV documentation built on Jan. 24, 2025, 9:14 p.m.