View source: R/features_02a_claim_covariates.R
| simulate_covariates | R Documentation |
Simulates covariates for each claim. The relative occurrence of each combination of covariates is given the frequency relativities of the covariates.
simulate_covariates(
covariates,
frequency_vector = 1,
claim_size_list = list(1),
random_seed = NULL
)
covariates |
a |
frequency_vector |
a vector in the same output as |
claim_size_list |
optional if |
random_seed |
optional seed for random number generation, for
reproducibility. If supplied, the covariate simulation is seeded locally and
the caller's random number stream is restored on exit, so the draws made here
neither depend on nor disturb the surrounding simulation. If |
Returns a covariates_data object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.