Description Usage Arguments Details Examples
computing non-parametric mixing distribution with estimated proportion at 0
1 |
x |
a object from implemented family |
... |
parameters above passed to the specific method. |
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:
val: Threshold value
mix: The initial proper mixing distribution.
tol: tolerance to stop the code.
maxiter: maximum iterations allowed.
verbose: logical; Whether to print the intermediate results.
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
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.