# NOT RUN {
## Declare and MTR with a sline component.
m0 = ~ x1 + x1 : uSpline(degree = 2,
knots = c(0.2, 0.4)) +
x2 : uSpline(degree = 2,
knots = c(0.2, 0.4)) +
x1 : x2 : uSpline(degree = 2,
knots = c(0.2, 0.4)) +
uSpline(degree = 3,
knots = c(0.2, 0.4),
intercept = FALSE)
## Now separate the spline component from the non-spline component
removeSplines(m0)
# }
Run the code above in your browser using DataLab