estpi0: Computing non-parametric mixing distribution with estimated...

Description Usage Arguments Details Examples

View source: R/npfixedcompR.R

Description

computing non-parametric mixing distribution with estimated proportion at 0

Usage

1
estpi0(x, ...)

Arguments

x

a object from implemented family

...

parameters above passed to the specific method.

Details

This is a function for computing non-parametric mixing distribution with estimated proportion at 0. Different families will have different threshold values.

The parameters are listed as follows:

It is not shown in the parameter section since various method have different default thresold values and this function essentially calls the class method in the object.

The full list of implemented families is in makeobject.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data = rnorm(500, c(0, 2))
pi0 = 0.5
x = makeobject(data, method = "npnormll")
estpi0(x)
x = makeobject(data, method = "npnormllw")
estpi0(x)
x = makeobject(data, method = "npnormcvm")
estpi0(x)
x = makeobject(data, method = "npnormcvm")
estpi0(x)
x = makeobject(data, method = "npnormad")
estpi0(x)
x = makeobject(data, method = "nptll")
estpi0(x)

xiangjiexue/npfixedcompR documentation built on Jan. 1, 2021, 11:39 p.m.