| 
27 | 27 | }  | 
28 | 28 | #' Make prototype ready4 S3 class for tibble object that stores simulation structural parameters relating to Mean Absolute Prediction Errors.  | 
29 | 29 | #' @description Create a new prototype for the ready4 S3 class for tibble object that stores simulation structural parameters relating to Mean Absolute Prediction Errors.  | 
30 |  | -#' @param param_name PARAM_DESCRIPTION, Default: character(0)  | 
31 |  | -#' @param sex_age_band PARAM_DESCRIPTION, Default: character(0)  | 
32 |  | -#' @param mape_05_yr_mde PARAM_DESCRIPTION, Default: numeric(0)  | 
33 |  | -#' @param mape_10_yr_mde PARAM_DESCRIPTION, Default: numeric(0)  | 
34 |  | -#' @param mape_15_yr_mde PARAM_DESCRIPTION, Default: numeric(0)  | 
35 |  | -#' @param mape_05_yr_min PARAM_DESCRIPTION, Default: numeric(0)  | 
36 |  | -#' @param mape_10_yr_min PARAM_DESCRIPTION, Default: numeric(0)  | 
37 |  | -#' @param mape_15_yr_min PARAM_DESCRIPTION, Default: numeric(0)  | 
38 |  | -#' @param mape_05_yr_max PARAM_DESCRIPTION, Default: numeric(0)  | 
39 |  | -#' @param mape_10_yr_max PARAM_DESCRIPTION, Default: numeric(0)  | 
40 |  | -#' @param mape_15_yr_max PARAM_DESCRIPTION, Default: numeric(0)  | 
41 |  | -#' @param mape_05_yr_shp PARAM_DESCRIPTION, Default: numeric(0)  | 
42 |  | -#' @param mape_10_yr_shp PARAM_DESCRIPTION, Default: numeric(0)  | 
43 |  | -#' @param mape_15_yr_shp PARAM_DESCRIPTION, Default: numeric(0)  | 
 | 30 | +#' @param param_name_chr Param name (a character vector), Default: character(0)  | 
 | 31 | +#' @param sex_age_band_chr Sex age band (a character vector), Default: character(0)  | 
 | 32 | +#' @param mape_05_yr_mde_dbl Mape 05 yr mde (a double vector), Default: numeric(0)  | 
 | 33 | +#' @param mape_10_yr_mde_dbl Mape 10 yr mde (a double vector), Default: numeric(0)  | 
 | 34 | +#' @param mape_15_yr_mde_dbl Mape 15 yr mde (a double vector), Default: numeric(0)  | 
 | 35 | +#' @param mape_05_yr_min_dbl Mape 05 yr min (a double vector), Default: numeric(0)  | 
 | 36 | +#' @param mape_10_yr_min_dbl Mape 10 yr min (a double vector), Default: numeric(0)  | 
 | 37 | +#' @param mape_15_yr_min_dbl Mape 15 yr min (a double vector), Default: numeric(0)  | 
 | 38 | +#' @param mape_05_yr_max_dbl Mape 05 yr max (a double vector), Default: numeric(0)  | 
 | 39 | +#' @param mape_10_yr_max_dbl Mape 10 yr max (a double vector), Default: numeric(0)  | 
 | 40 | +#' @param mape_15_yr_max_dbl Mape 15 yr max (a double vector), Default: numeric(0)  | 
 | 41 | +#' @param mape_05_yr_shp_dbl Mape 05 yr shp (a double vector), Default: numeric(0)  | 
 | 42 | +#' @param mape_10_yr_shp_dbl Mape 10 yr shp (a double vector), Default: numeric(0)  | 
 | 43 | +#' @param mape_15_yr_shp_dbl Mape 15 yr shp (a double vector), Default: numeric(0)  | 
44 | 44 | #' @return A prototype for ready4 S3 class for tibble object that stores simulation structural parameters relating to Mean Absolute Prediction Errors.  | 
45 | 45 | #' @details ready4 S3 class for tibble object that stores simulation structural parameters relating to Mean Absolute Prediction Errors.  | 
46 | 46 | #' @rdname make_pt_ready4_par_struc_mape  | 
47 | 47 | #' @export   | 
48 | 48 | #' @importFrom ready4class update_pt_fn_args_ls  | 
49 | 49 | #' @importFrom rlang exec  | 
50 | 50 | #' @importFrom tibble tibble  | 
51 |  | -make_pt_ready4_par_struc_mape <- function(param_name = character(0),  | 
52 |  | -sex_age_band = character(0),  | 
53 |  | -mape_05_yr_mde = numeric(0),  | 
54 |  | -mape_10_yr_mde = numeric(0),  | 
55 |  | -mape_15_yr_mde = numeric(0),  | 
56 |  | -mape_05_yr_min = numeric(0),  | 
57 |  | -mape_10_yr_min = numeric(0),  | 
58 |  | -mape_15_yr_min = numeric(0),  | 
59 |  | -mape_05_yr_max = numeric(0),  | 
60 |  | -mape_10_yr_max = numeric(0),  | 
61 |  | -mape_15_yr_max = numeric(0),  | 
62 |  | -mape_05_yr_shp = numeric(0),  | 
63 |  | -mape_10_yr_shp = numeric(0),  | 
64 |  | -mape_15_yr_shp = numeric(0)){   | 
65 |  | -args_ls <- list(param_name = param_name,  | 
66 |  | -sex_age_band = sex_age_band,  | 
67 |  | -mape_05_yr_mde = mape_05_yr_mde,  | 
68 |  | -mape_10_yr_mde = mape_10_yr_mde,  | 
69 |  | -mape_15_yr_mde = mape_15_yr_mde,  | 
70 |  | -mape_05_yr_min = mape_05_yr_min,  | 
71 |  | -mape_10_yr_min = mape_10_yr_min,  | 
72 |  | -mape_15_yr_min = mape_15_yr_min,  | 
73 |  | -mape_05_yr_max = mape_05_yr_max,  | 
74 |  | -mape_10_yr_max = mape_10_yr_max,  | 
75 |  | -mape_15_yr_max = mape_15_yr_max,  | 
76 |  | -mape_05_yr_shp = mape_05_yr_shp,  | 
77 |  | -mape_10_yr_shp = mape_10_yr_shp,  | 
78 |  | -mape_15_yr_shp = mape_15_yr_shp) %>% ready4class::update_pt_fn_args_ls()  | 
 | 51 | +make_pt_ready4_par_struc_mape <- function(param_name_chr = character(0),  | 
 | 52 | +sex_age_band_chr = character(0),  | 
 | 53 | +mape_05_yr_mde_dbl = numeric(0),  | 
 | 54 | +mape_10_yr_mde_dbl = numeric(0),  | 
 | 55 | +mape_15_yr_mde_dbl = numeric(0),  | 
 | 56 | +mape_05_yr_min_dbl = numeric(0),  | 
 | 57 | +mape_10_yr_min_dbl = numeric(0),  | 
 | 58 | +mape_15_yr_min_dbl = numeric(0),  | 
 | 59 | +mape_05_yr_max_dbl = numeric(0),  | 
 | 60 | +mape_10_yr_max_dbl = numeric(0),  | 
 | 61 | +mape_15_yr_max_dbl = numeric(0),  | 
 | 62 | +mape_05_yr_shp_dbl = numeric(0),  | 
 | 63 | +mape_10_yr_shp_dbl = numeric(0),  | 
 | 64 | +mape_15_yr_shp_dbl = numeric(0)){   | 
 | 65 | +args_ls <- list(param_name_chr = param_name_chr,  | 
 | 66 | +sex_age_band_chr = sex_age_band_chr,  | 
 | 67 | +mape_05_yr_mde_dbl = mape_05_yr_mde_dbl,  | 
 | 68 | +mape_10_yr_mde_dbl = mape_10_yr_mde_dbl,  | 
 | 69 | +mape_15_yr_mde_dbl = mape_15_yr_mde_dbl,  | 
 | 70 | +mape_05_yr_min_dbl = mape_05_yr_min_dbl,  | 
 | 71 | +mape_10_yr_min_dbl = mape_10_yr_min_dbl,  | 
 | 72 | +mape_15_yr_min_dbl = mape_15_yr_min_dbl,  | 
 | 73 | +mape_05_yr_max_dbl = mape_05_yr_max_dbl,  | 
 | 74 | +mape_10_yr_max_dbl = mape_10_yr_max_dbl,  | 
 | 75 | +mape_15_yr_max_dbl = mape_15_yr_max_dbl,  | 
 | 76 | +mape_05_yr_shp_dbl = mape_05_yr_shp_dbl,  | 
 | 77 | +mape_10_yr_shp_dbl = mape_10_yr_shp_dbl,  | 
 | 78 | +mape_15_yr_shp_dbl = mape_15_yr_shp_dbl) %>% ready4class::update_pt_fn_args_ls()  | 
79 | 79 | rlang::exec(tibble::tibble,!!!args_ls)  | 
80 | 80 | }  | 
81 | 81 | #' Validate ready4 S3 class for tibble object that stores simulation structural parameters relating to Mean Absolute Prediction Errors.  | 
 | 
0 commit comments