View source: R/parametricExampleOptim.R
A function for estimating the model which assumes that
mu ~ N(0, b) and y ~ TN(mu, 1, threshold). The selection rule is
x < threshold[1]
or x > threshold[2]
.
1 2 | estimateTruncParamModel(x, threshold, sigmaGrid = NULL, maxSigma = NULL,
nIntPoints = 10^4, seed = NULL, knownSigma = NULL)
|
x |
the observed z-scores |
threshold |
the selection threshold for the selection rule
|
sigmaGrid |
an optional grid of stadard deviation values over which to evaluate the likelihood |
maxSigma |
an optional maximal value for the standard deviation of mu |
nIntPoints |
number of samples to take for numerical integration |
seed |
an optional seed |
knownSigma |
the standard deviation of the distribution of the normal means is known if it is known (for computing the true bayes rule) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.