Description Usage Arguments Value
View source: R/sensitivity_analysis.R
NOTE: Fitting all at once results in too few degrees of freedom. Need to fit one at a time.
1 2 3 4 5 6 7 | sensitivity_analysis(
y,
x,
ymedian = median(y),
xmedian = median(x),
alpha = 0.05
)
|
y |
Response variable |
x |
Dependent variable |
ymedian |
Median of response variable (default is calculated as 'median(y)') |
xmedian |
Median of dependent variable (default is calculated as 'median(x)') |
alpha |
Fraction of median around which to calculate derivative for sensitivity. Default = 0.05 |
'tibble' of sensitivity analysis results, with columns 'cv' (Coefficient of variation for 'x'), 'sensitivity' (unnormalized sensitivity of 'y' to 'x' at median), 'elasticity' (normalized 'sensitivity'), and 'pvar' (prediction variance).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.