generate_stdzied_design_matrix: Generates a design matrix with standardized predictors.

View source: R/shared.R

generate_stdzied_design_matrixR Documentation

Generates a design matrix with standardized predictors.

Description

This function is useful for debugging.

Usage

generate_stdzied_design_matrix(n = 50, p = 1, covariate_gen = rnorm, ...)

Arguments

n

Number of rows in the design matrix

p

Number of columns in the design matrix

covariate_gen

The function to use to draw the covariate realizations (assumed to be iid). This defaults to rnorm for $N(0,1)$ draws.

...

Optional arguments to be passed to the covariate_dist function.

Value

THe design matrix

Author(s)

Adam Kapelner


GreedyExperimentalDesign documentation built on July 26, 2023, 5:48 p.m.