Git Product home page Git Product logo

confintr's People

Contributors

mayer79 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

confintr's Issues

Suggestion: student bootstrapped CIs for skewness and kurtosis

Hi @mayer79, I noticed that the student bootstrapped CIs for skewness and kurtosis are provided in DescTools as their standard error formulae are given in the script of DescTools::Skew() and DescTools::Kurt(). You could consider incorporating this bootstrap option. Also note that DescTools has three methods of calculating skewness and kurtosis each, with the default method = 3 different from the typical definition as in method = 1. I have not investigated how the three methods compare with each other.

Error in studentized bootstrap CIs

There is a mistake in the studentized bootstrap CIs for

  • ci_mean()
  • ci_mean_diff()
  • ci_var()
  • ci_sd(), and
  • ci_proportion()

Mainly affected are the first two function, because there, studentized bootstrap is the default bootstrap method.

The problem: boot::boot() expects as second component a function for the variance, not for the standard deviation of the estimator. This will lead to wrong reference distributions and thus, to wrong confidence intervals.

Better unit tests

We need better unit tests, especially for the Bootstrap confidence intervals.

Suggestion: Confidence intervals of ratio and difference in variance and standard deviation

Hi @mayer79, would you consider adding function for confidence intervals of variance and standard deviation ratio and difference between two (independent) samples? I once wrote R functions that calculate student and percentile bootstrap confidence intervals of standard deviation ratios between two independent samples, based on both raw ratio and its logarithm. I do not think the asymptotic "normal" bootstrap is appropriate, as the ratios are usually skewed. It is probably better to generate confidence intervals of variance ratios first, then transform them to those of standard deviation ratios. I assume the logarithm of a ratio is less skewed than its raw form and possibly has a better property when forming confidence intervals, but I have not explored its theoretic or empirical basis. I can show my script if needed.

The following sources might be helpful

Question: Best bootstrap method for variance, standard deviation, and proportion

Hi @mayer79, I wonder if bias-corrected and accelerated (BCA) bootstrapping performs better than student bootstrapping on confidence intervals of variance, standard deviation, and proportion. I loved your package for including student bootstrap confidence intervals, as it is rarely directly available in other packages.

I noticed that the default bootstrap method for variance, standard deviation, and proportion is the BCA whereas that for mean is the student bootstrap. However, the student bootstrap method is available for all these statistics because their standard error formulae are known as what you included. From Hesterberg, T. C. (2015). What teachers should know about the bootstrap: Resampling in the undergraduate statistics curriculum. The American Statistician, 69(4), 371โ€“386. https://doi.org/10.1080/00031305.2015.1089789, I understand that student bootstrap confidence intervals performs best for confidence intervals of means, as illustrated in Figure 10 by bootT. But is there any comparison between bootstrap method performance on confidence intervals of variance, standard deviation, and proportion?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.