View source: R/helper-functions.R
make_predict_dat | R Documentation |
make_predict_dat(Smooth, dat)
Smooth |
The smooth object from construct_smooth_data |
dat |
The testing data to construct the new design matrix. |
a data frame containing the trasnformed desgin matrix for the testing data
raw_dat <- sim_Bai(100, 5)$dat %>% data.frame
test_dat <- sim_Bai(100, 5)$dat %>% data.frame
sm_df <- data.frame(
Var = setdiff(names(raw_dat), "y"),
Func = "s",
Args ="bs='cr', k=5"
)
dsn_smooth <- construct_smooth_data(sm_df, raw_dat)$Smooth
make_predict_dat(dsn_smooth, test_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.