get_name_value_probdistrb_def: Function to return the two parameters from a given expression...

Description Usage Arguments Details Value Examples

View source: R/help_parameter_estimation_functions.R

Description

Function to return the two parameters from a given expression separated by comma,

Usage

1

Arguments

expr

an expression

Details

It will return the parameters of the distribution separated by commas and given in usual notation as brackets. It will identify those in between first occurrence of "( "and last occurrence of ")" and from the characters in between search for comma to indicate different parameters then it will extract (from those extracted parameters separated by commas) that on the left side of "equal" sign get_name_value_probdistrb_def("gamma(mean = sqrt(2), b =17)") will be ok but get_name_value_probdistrb_def("gamma(shape, scale")) and get_name_value_probdistrb_def("gamma(shape =1 & scale =1")) will show error

Value

parameters in the expression expr

Examples

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

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