Parameters Choice

Share:

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

1
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

Author(s)

Jim Yi

Examples

1
2
3
4
5
6
7
8
##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")