beta_first_s_covariates: First covariates have an effect

Description Usage Arguments Value

View source: R/covariateCoefficients.R

Description

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

Usage

1
beta_first_s_covariates(p, s, values = rep(1, s), ...)

Arguments

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

Value

function that returns a vector of covariates where only the first s coefficients are non-zero


bips-hb/simsham documentation built on Dec. 19, 2021, 9:48 a.m.