Learn R Programming

spsurvey (version 4.0.0)

simex: Internal Function: Extrapolation for Simulation-Extrapolation Function

Description

This function executes the extrapolation step of the simulation extrapolation deconvolution method (Stefanski and Bay, 1996). The function can accomodate single-stage and two-stage samples.

Usage

simex(z, val, sigma, var.sigma, cluster.ind, cluster)

Arguments

z

Vector of the response value for each site.

val

Vector of the set of values at which the CDF is estimated.

sigma

Measurement error variance.

var.sigma

Variance of the estimated measurement error variance.

cluster.ind

Logical value that indicates whether the survey design utilizes two stages.

cluster

Vector of the stage one sampling unit (primary sampling unit or cluster) code for each site.

Value

Output is a list containing the following matrices:

g

values of the function g(.) evaluated at val for each value of z

dg

values of the derivative of the function g(.)