Learn R Programming

SemiParSampleSel (version 1.2)

est.aver: Estimated overall average from sample selection model

Description

est.aver can be used to calculate the overall estimated average from a sample selection model, with corresponding confidence interval obtained using the delta method.

Usage

est.aver(x, sig.lev = 0.05, sw = NULL, naive = FALSE)

Arguments

x
A fitted SemiParSampleSel object as produced by SemiParSampleSel().
sig.lev
Significance level.
sw
Survey weights.
naive
It indicates whether the prevalence is calculated using a (naive/classic) univariate equation model or sample selection model. This option has been introduced to compared adjusted and unadjusted estimates.

Value

  • resIt returns three values: lower confidence interval limit, estimated average and upper confidence interval limit.
  • sig.levSignificance level used.

Details

est.aver estimates the overall average of an outcome of interest when there are missing values that are not at random.

See Also

SemiParSampleSel-package, SemiParSampleSel, summary.SemiParSampleSel

Examples

Run this code
## see examples for SemiParSampleSel

Run the code above in your browser using DataLab