We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quantiles
survey_median()
Seems like an easy mistake to make, and currently it just silently gives you the median.
library(srvyr) data(api, package = "survey") dstrata <- apistrat %>% as_survey(strata = stype, weights = pw) dstrata %>% summarize( x = survey_median(api99, quantiles = 0.2), median = survey_median(api99), twentith = survey_quantile(api99, quantiles = 0.2) ) #> # A tibble: 1 × 6 #> x x_se median median_se twentith_q20 twentith_q20_se #> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 631 17.5 631 17.5 504 10.6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seems like an easy mistake to make, and currently it just silently gives you the median.
The text was updated successfully, but these errors were encountered: