Learn R Programming

extras (version 0.7.3)

sens_student: Adjust Student's t Distribution Parameters for Sensitivity Analyses

Description

Expands (sd_mult > 1) or reduces (sd_mult < 1) the standard deviation of the Student's t distribution. Because the variance of this distribution is not defined for every degree of freedom, the adjustment to the standard deviation is approximate, and the mean of the adjusted distribution can be expected to have shifted.

Usage

sens_student(mean, sd, theta, sd_mult = 2)

Value

A named list of the adjusted distribution's parameters.

Arguments

mean

A numeric vector of the means.

sd

A non-negative numeric vector of the standard deviations.

theta

A non-negative numeric vector of the dispersion for the mixture models (student, gamma-Poisson and beta-binomial).

sd_mult

A non-negative multiplier on the standard deviation of the distribution.

See Also

Other sens_dist: sens_beta(), sens_exp(), sens_gamma(), sens_gamma_pois(), sens_gamma_pois_zi(), sens_lnorm(), sens_neg_binom(), sens_norm(), sens_pois(), sens_skewnorm()

Examples

Run this code
sens_student(10, 3, 0.1, 2)
sens_student(10, 3, 0.1, 0.8)

Run the code above in your browser using DataLab