check_estimate_substitute_proper_params: #######################################################################...

Description Usage Arguments Details Value Examples

View source: R/help_parameter_estimation_functions.R

Description

####################################################################### Function to get the expression, analyse it for what distribution it is, then check if it has all parameters requires, if not estimate the required parameters from given parameters, and substitute it for actual expression that can be used with R stats package

Usage

1

Arguments

the_expr

given parameters for generating ransom numbers

Details

Get the expression of probability distribution with parameters, get the parameters that are found, then find the required params and if they are ok if not try if they can be estimated. Then it will substitute for proper parameters in the way R is expecting to perform

Value

the keyword that should be used in R for generating random numbers

Examples

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

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