## Not run:
# # Evaluate temperature effects up to 45 lags for cold and heat and
# # a single breakpoint; use 20 as starting value, a global difference
# # penalty on spline coefficients and no ridge penalty
# csdl(my.temperature,psi=20,L=c(45,45),ridge=NULL)
#
# # Evaluate temperature effects up to 45 lags for cold and 15 lag for
# # heat, via P-splines with a global difference penalty on DL coefficients
# # and an additional quadratic ridge penalty
# csdl(my.temperature,psi=20,L=c(45,15),DL=TRUE,ridge=list(cold="l^2",
# heat="l^2"))
# ## End(Not run)
Run the code above in your browser using DataCamp Workspace