Learn R Programming

penetrance (version 0.1.0)

calculate_weibull_parameters: Calculate Weibull Parameters

Description

This function calculates the shape (alpha) and scale (beta) parameters of a Weibull distribution given the median, first quartile, and delta values.

Usage

calculate_weibull_parameters(given_median, given_first_quartile, delta)

Value

A list containing the calculated Weibull parameters:

alpha

The shape parameter of the Weibull distribution

beta

The scale parameter of the Weibull distribution

Arguments

given_median

The median of the data.

given_first_quartile

The first quartile of the data.

delta

A constant offset value.

Examples

Run this code
# Calculate Weibull parameters
params <- calculate_weibull_parameters(
  given_median = 50,
  given_first_quartile = 30,
  delta = 15
)
print(params)

Run the code above in your browser using DataLab