gen_xs_default: Default function to generate covariates X.

Description Usage Arguments Value Examples

View source: R/simulation-lib.R

Description

Generates the X_i independently, with each component of X_i also being an independent Normal(0, 1). Exported to the user.

Usage

1

Arguments

n

Number of observations to generate

p

Number of dimensions for each observation (includes the intercept)

Value

An n * (p-1) matrix of generated covariates

Examples

1

shiandy/methods1proj documentation built on Dec. 31, 2020, 5:15 a.m.