Learn R Programming

mixR (version 0.2.1)

to_mu_sd_weibull: Parameter Conversion for Weibull Distribution

Description

The function to_mu_sd_weibull converts the parameters of shape and scale of weibull distributions to the parameters of the mean and standard deviation.

Usage

to_mu_sd_weibull(k, lambda)

Value

a list of two items

mu

a vector of the means of Weibull distributions

sd

a vector of the standard deviations of Weibull distributions

Arguments

k

a numeric vector representing the shape of a series of Weibull distributions

lambda

a numeric vector representing the scale of a series of Weibull distributions. k and lambda should have the same length.

Details

The purpose of this function is to convert the parameterization of Weibull distribution in the form of shape and scale to the form of mean and standard deviation.

See Also

to_k_lambda_weibull

Examples

Run this code
to_mu_sd_weibull(2, 1)
to_mu_sd_weibull(c(2, 4), c(1, 1))

Run the code above in your browser using DataLab