Skip to content
New issue

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

general CI function #184

Open
smishr opened this issue Jan 19, 2023 · 0 comments · May be fixed by #190
Open

general CI function #184

smishr opened this issue Jan 19, 2023 · 0 comments · May be fixed by #190
Assignees
Labels
enhancement New feature or request food for thought High level ideas/links or thoughts for long run dev of project

Comments

@smishr
Copy link
Contributor

smishr commented Jan 19, 2023

The latest quantile fn calculates SE using bootweights.

Confidence intervals are important part of statistical analysis. Add Confidence interval lower and upper to package

Usually in surveys there are three options for CI calculation, preferred by different people, and is subjective which is "best".

  • estimate +- N(1-alpha) * SE
  • estimate +- t(sample size -1)(1-alpha) * SE
  • estimate +- e * SE, where e = margin of error (commonly taken e=2 in most surveys)

z-value is usually adequate, as n is large in most surveys. Also, for non-normal data and for more complex sample designs and estimators, the appropriate degrees of freedom are not obvious for using t.

Perhaps keyword options can be passed, and this CI function can be made more general like:

function ci(statistic, SE, type="normal" [,alpha=0.05, e=2] )
with type="t" and type="margin" support

@smishr smishr changed the title quantile CI general CI function Jan 19, 2023
@smishr smishr self-assigned this Jan 19, 2023
@smishr smishr added enhancement New feature or request food for thought High level ideas/links or thoughts for long run dev of project labels Jan 19, 2023
@smishr smishr changed the title general CI function general CI function Jan 19, 2023
@smishr smishr linked a pull request Feb 23, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request food for thought High level ideas/links or thoughts for long run dev of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant