sreg_srswr: Semiparametric Model-Assisted Estimation under a Simple...

Description Usage Arguments Value Author(s) References Examples

View source: R/sreg_srswr.R

Description

sreg_srswr is used to estimate the total parameter of a finite population generated from a semi-parametric generalized gamma population under a simple random sampling without-replacement sampling design.

Usage

1
sreg_srswr(location_formula, scale_formula, data, fraction)

Arguments

location_formula

a symbolic description of the systematic component of the location model to be fitted.

scale_formula

a symbolic description of the systematic component of the scale model to be fitted.

data

a data frame, list containing the variables in the model.

fraction

numeric, represents a fraction of the size of the population. Default value is 0.2.

Value

sampling_design is the name of the sampling design used in the estimation process.

N is the population size.

n is the fixed sample size used in the estimation process.

first_order_probabilities vector of the first order probabilities used in the estimation process.

sample is the random sample used in the estimation process.

total_y_sreg is the SREG estimate of the total parameter of the finite population.

Author(s)

Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>

References

Sarndal C.E., Swensson B., and Wretman J. (2003). Model Assisted Survey Sampling. Springer.

Cardozo C.A., Paula G., and Vanegas L. (2021). Generalized log-gamma semiparametric models with P-spline smoothing. Submitted.

Examples

1
2
3
4
5
6
7
8
9
library(survey)
library(dplyr)
data(api)
attach(apipop)
Apipop <- filter(apipop,full!= 'NA')
Apipop <- filter(Apipop, stype == 'H')
Apipop <- select(Apipop,c(api00,grad.sch,full))
sreg_srswr(api00 ~  pb(grad.sch), scale_formula = ~ full - 1, data= Apipop, fraction=0.25)
sum(Apipop$api00)

sregsurvey documentation built on Sept. 15, 2021, 9:09 a.m.