# Import example data set
data("dengue_MS")
# Build a one-dimensional spline basis with a custom name
ob_inla <- onebasis_inla(
covariate = dengue_MS$tmin,
fun = "bs",
basis_name = "tempBasis",
degree = 2
)
# Check class of the one-basis object
class(ob_inla)
# View first rows of the one-basis matrix
head(ob_inla)
Run the code above in your browser using DataLab