resid_maker: Creates orthogonal residuals

Description Usage Arguments Value

View source: R/other.R

Description

This function is an auxiliary function for simulation purposes. It creates a vector of n standard normal random variables, residualizes this vector against a matrix of covariates C, then standardizes the vector again.

Usage

1

Arguments

n

sample size.

C

a numeric matrix with n rows and p columns.

Value

The function returns a numeric vector orthogonal to C.


sensemakr documentation built on Oct. 8, 2021, 9:10 a.m.