Learn R Programming

penetrance (version 0.1.0)

validate_weibull_parameters: Validate Weibull Parameters

Description

This function validates the given parameters for calculating Weibull distribution.

Usage

validate_weibull_parameters(
  given_first_quartile,
  given_median,
  threshold,
  asymptote
)

Value

Logical value indicating whether the parameters are valid (TRUE) or not (FALSE)

Arguments

given_first_quartile

The first quartile of the data.

given_median

The median of the data.

threshold

A constant threshold value.

asymptote

A constant asymptote value (gamma).

Examples

Run this code
# Validate parameters
is_valid <- validate_weibull_parameters(
  given_first_quartile = 30,
  given_median = 50,
  threshold = 15,
  asymptote = 0.8
)
print(is_valid)

Run the code above in your browser using DataLab