resid_maker | R Documentation |
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.
resid_maker(n, C)
n |
sample size. |
C |
a numeric matrix with |
The function returns a numeric vector orthogonal to C.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.