Description Usage Arguments Value
View source: R/covariateCoefficients.R
Returns a function that itself return a coefficient vector where on the first s coefficients are non-zero. The values they take are given by the parameter values
1 | beta_first_s_covariates(p, s, values = rep(1, s), ...)
|
p |
length of the vector |
s |
the number of vectors that are non-zero |
values |
vector of length s that contains the values of the coefficients |
function that returns a vector of covariates where only the first s coefficients are non-zero
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.