Learn R Programming

SemiParSampleSel (version 1.5)

aver: Estimated overall average from sample selection model

Description

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

aver(x, sig.lev = 0.05, sw = NULL, univariate = FALSE, delta = TRUE, n.sim = 100)

Arguments

x
A fitted SemiParSampleSel object as produced by SemiParSampleSel().
sig.lev
Significance level.
sw
Survey weights.
univariate
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.
delta
If TRUE then the delta method is used for confidence interval calculations, otherwise Bayesian posterior simulation is employed.
n.sim
Number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. This is used when delta = FALSE. It may be increased if more precision is required.

Value

res
It returns three values: lower confidence interval limit, estimated average and upper confidence interval limit.
sig.lev
Significance level used.

Details

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