check_estimate_required_params: Function to check if the parameters are sufficient to define...

Description Usage Arguments Details Value Examples

View source: R/help_parameter_estimation_functions.R

Description

Function to check if the parameters are sufficient to define a distribution and if not see if we can estimate the parameters from the given parameters, e.g. for gamma distribution, shape and rate can be estimated from mean and sd

Usage

1
check_estimate_required_params(the_expr, distr_key)

Arguments

the_expr

the expression that contain the definition

distr_key

the keyword used to generate random numbers in stats package

Details

if the distribution is gamma and the parameters are mean and sd we can estimate shape and rate from mean and sd. This function is not usually needed by the user

Value

the parameters required

Examples

1
check_estimate_required_params("gamma(mean = 10 ,sd = 1)", "gamma")

packDAMipd documentation built on March 3, 2021, 5:07 p.m.