View source: R/newMLEfunction.R
Computes the conditional mle for a region selected based on
the selection rule y[selected] > threshold
or
y[selected] < -threshold
, and the coordinates which were not
selected must violate the selection rule.
1 2 3 4 5 6 | roiMLE(y, cov, threshold, compute = c("mle", "lower-CI", "upper-CI"),
ci_alpha = 0.025, coordinates = NULL, selected = NULL,
mean_weights = NULL, projected = NULL, regularization_param = NULL,
regularization_slack = 1, init = NULL, progress = FALSE,
sampling_control = roi_sampling_control(),
mle_control = roi_mle_control())
|
y |
the observed noraml coordinates |
cov |
the covariance of |
threshold |
the threshold used in the selection rule.
Must be either a scalar or a numeric vector of size |
coordinates |
an optional matrix of the coordinates of the observed
vector. This is only relevant if |
selected |
an optional boolean vector, with |
mean_weights |
the weights to use for the contrast to be computed, if
not specified then equal weights will be given to all selected coordinates.
|
projected |
an optional fixed value that |
regularization_param |
an optional penalty value for the tykohonov
regularizer. This is an (inferior) altenative to specifying a
|
regularization_slack |
the estimation routine uses first differences
Tykohonov regularization to estimate the mean of the selected region.
|
init |
initial value for the mean estimate |
progress |
whether to display a bar describing the progress of the gradient algorithm. |
sampling_control |
a list with control parameters for sampling from the estimated distribution. |
mle_contorl |
a list of parameters to be used when computed the conditional MLE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.