Skip to content

sens_skewnorm() returns the mean instead of the location parameter #165

Description

@StefanoMezzini

All other sens_.*() functions I looked at return the typical parameters (e.g., shapes for Beta, shape and scale for Gamma). I think the skewnorm function should return the location parameter instead of the mean.

extras/R/sens.R

Lines 77 to 81 in 48d69df

original_mean <- mean + sd * (shape / sqrt(1 + shape^2)) * sqrt(2 / pi)
new_mean <- mean + new_sd * (shape / sqrt(1 + shape^2)) * sqrt(2 / pi)
diff_means <- new_mean - original_mean
adjusted_mean <- mean - diff_means
return(list(mean = adjusted_mean, sd = new_sd, shape = shape))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions