Learn R Programming

brms (version 1.7.0)

lasso: Set up a lasso prior in brms

Description

Function used to set up a lasso prior for population-level effects in brms. The function does not evaluate its arguments -- it exists purely to help set up the model.

Usage

lasso(df = 1, scale = 1)

Arguments

df

Degrees of freedom of the chi-sqaure prior of the inverse tuning parameter. Defaults to 1.

scale

Scale of the lasso prior. Defaults to 1.

Value

A character string obtained by match.call() with additional arguments.

Details

See set_prior for more details about the lasso prior.

See Also

set_prior

Examples

Run this code
# NOT RUN {
set_prior(lasso(df = 1, scale = 10))

# }

Run the code above in your browser using DataLab