-
Notifications
You must be signed in to change notification settings - Fork 19
general CI function #184
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestfood for thoughtHigh level ideas/links or thoughts for long run dev of projectHigh level ideas/links or thoughts for long run dev of project
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfood for thoughtHigh level ideas/links or thoughts for long run dev of projectHigh level ideas/links or thoughts for long run dev of project
The latest
quantilefn 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".
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"andtype="margin"support