Learn R Programming

SUE (version 1.0)

parameters: Parameters Choice

Description

This function computes the main parameters of the subsampling method. The values it returns are needed in following computing process of the function SUE.lm.

Usage

parameters(N, ns, a = 0.1, E = 0.99, p = 0.99, method = "default")

Arguments

N
The number of observations of a sample
ns
The subsample size
a
The proportion of contamination
E
The desired efficiency
p
The probability of having at least r* good subsamples
method
The options to generate parameters in different mechanisms

Value

ns
The subsamples size
r
The number of subsamples to be combined
k
The total number of subsamples to be gemerated

Examples

Run this code
##Generate parameters of the data with N=50 observations
parameters(50)

##Generate parameters using method="small.k"
parameters(50,a=0.2,method="small.k")

##Generate parameters using method="appro.k"
parameters(50,a=0.05,method="appro.k")

Run the code above in your browser using DataLab