construct_model_points() is deprecated in favour of rating_grid().
Usage
construct_model_points(
x,
group_by = NULL,
exposure = NULL,
exposure_by = NULL,
aggregate_cols = NULL,
drop_na = FALSE,
group_vars = NULL,
agg_cols = NULL
)Arguments
- x
A
data.frame, an object of class"model_data"returned byextract_model_data(), or a fitted model that can be passed toextract_model_data().- group_by
Optional character vector with the variables that define the rating-grid points. If
NULLandxis a"model_data"object, the risk-factor variables stored in the object are used. IfNULLandxis a plaindata.frame, all columns except those listed inexposure,exposure_by, andaggregate_colsare used.- exposure
Optional character; name of the exposure column to aggregate.
- exposure_by
Optional character; name of a column used to split exposure or counts, for example a year variable.
- aggregate_cols
Optional character vector with additional numeric columns to aggregate using
sum(na.rm = TRUE).- drop_na
Logical; if
TRUE, rows with missing values ingroup_byare removed before aggregation. Default isFALSE.- group_vars, agg_cols
Deprecated argument names. Use
group_byandaggregate_colsinstead.
Value
See rating_grid().
