Description Usage Arguments Value
View source: R/covariateCoefficients.R
Returns a function that itself return a coefficient vector where non-zero coefficients are spread out 'equally'. The values they take are given by the parameter values
1 2 3 4 5 6 7 |
p |
length of the vector |
s |
the number of vectors that are non-zero |
indices |
the indices of the coefficients that are non-zero (Default: equally spread out) |
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.