Skip to content

Conversation

@etiennebacher
Copy link
Member

@etiennebacher etiennebacher commented Oct 7, 2024

Close #540

library(datawizard)

set.seed(123456)
describe_distribution(mtcars[mtcars$cyl=="6",], wt, centrality = "map", ci = 0.95)
#> Warning: When bootstrapping CIs, sample was too sparse to find TD. Returning NA
#>   for CIs.
#> Variable |  MAP |  IQR | 95% CI |        Range | Skewness | Kurtosis | n | n_Missing
#> ------------------------------------------------------------------------------------
#> wt       | 3.43 | 0.67 |        | [2.62, 3.46] |    -0.36 |    -2.08 | 7 |         0

Created on 2024-10-07 with reprex v2.1.1

Copy link
Member

@IndrajeetPatil IndrajeetPatil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thanks!

@etiennebacher etiennebacher merged commit db85541 into main Oct 7, 2024
@etiennebacher etiennebacher deleted the bootstrap-error branch October 7, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail more gracefully when CI computations fails for MAP estimates in describe_distribution()

3 participants