Description Usage Arguments Details Examples
Computing non-parametric mixing distribution
1 | computemixdist(x, ...)
|
x |
a object from implemented family generated by |
... |
parameters above passed to the specific method |
The full list of implemented family is in makeobject
.
The avaliable parameters are listed as follows:
mix: The initial proper mixing distribution
tol: tolerance to stop the code
maxiter: maximum iterations allowed.
verbose: logical; whether to print the intermediate results.
This function essentially calls the class method in the object.
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, pi0 = pi0, method = "npnormll")
computemixdist(x)
x = makeobject(data, pi0 = pi0, method = "npnormllw")
computemixdist(x)
x = makeobject(data, pi0 = pi0, method = "npnormcvm")
computemixdist(x)
x = makeobject(data, pi0 = pi0, method = "npnormcvmw")
computemixdist(x)
x = makeobject(data, pi0 = pi0, method = "npnormad")
computemixdist(x)
x = makeobject(data, pi0 = pi0, method = "nptll")
computemixdist(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.