Skip to content

general CI function #184

@smishr

Description

@smishr

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfood for thoughtHigh level ideas/links or thoughts for long run dev of project

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions