npseed is a function which sets the random seed in the
np C backend, resetting the random number generator.
an integer seed for the random number generator.
npseed provides an interface for setting the random seed (and
resetting the random number generator) used
np. The random number generator is used during the
bandwidth search procedure to set the search starting point, and in
subsequent searches when using multistarting, to avoid being trapped
in local minima if the objective function is not globally concave.
npseed will only affect the numerical search if it is
performed by the C backend. The affected functions include:
This method currently only supports objects from the
Li, Q. and J.S. Racine (2007), Nonparametric Econometrics: Theory and Practice, Princeton University Press.
npseed(712) x <- runif(10) y <- x + rnorm(10, sd = 0.1) bw <- npregbw(y~x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.