profile_random_effects.RdCompute profile-likelihood curves and confidence intervals for random-effects variance parameters by fixing one variance parameter at a time and re-optimizing all remaining parameters.
profile_random_effects(
model,
tau_indices = NULL,
level = 0.95,
n_points = 21,
span = 3,
grid = NULL,
optim_method = "L-BFGS-B",
control = list(factr = 1e+07, maxit = 400)
)A fitted mars model object (non-LASSO).
Optional indices (1-based) of random-effects parameters to profile. Defaults to all random-effects parameters.
Confidence level for profile-likelihood intervals. Default 0.95.
Number of grid points used per profiled parameter. Default 21.
Multiplicative span around the MLE for automatic grids. Default 3.
Optional custom grid specification:
numeric vector: reused for each parameter
list of numeric vectors with one entry per profiled parameter.
Optimization method passed to optim(). Default "L-BFGS-B".
Control list passed to optim() for each conditional fit.
A list containing per-parameter profile grids and profile-likelihood CIs.