DesignFormula {DALSM}R Documentation

Internal function extracting design matrices from formulas in the DALSM function and computing penalty related matrices

Description

Internal function extracting design matrices from formulas in the DALSM function and computing penalty related matrices.

Usage

DesignFormula(formula, data, K = 10, pen.order = 2, n = NULL)

Arguments

formula

a formula describing the fixed effects and the additive terms in a regression model.

data

a dataframe containing the data.

K

number of B-splines to describe an additive term.

pen.order

desired penalty order for the spline parameters in the additive terms.

n

number of units (Default: number of rows in the design matrix constructed from the formula and the data frame).

Value

a list with

Author(s)

Philippe Lambert p.lambert@uliege.be

References

Lambert, P. (2021). Fast Bayesian inference using Laplace approximations in nonparametric double additive location-scale models with right- and interval-censored data. Computational Statistics and Data Analysis, 161: 107250. <doi:10.1016/j.csda.2021.107250>


[Package DALSM version 0.9.1 Index]