Clustered random forest fitting
crf(
formula,
data,
B = 500,
L = 100,
beta = 0.9,
weight_optimiser = "Training MSE",
correlation = "equicorr",
maxdepth = 30,
minbucket = 10,
cp = 0,
x0 = NULL,
test_data = NULL,
fixrho = FALSE,
honesty = TRUE,
verbose = TRUE,
seed = NULL
)A clustered random forest fitted object
an object of class `formula` describing the model to fit.
training dataset for fitting the CRF. Note that group ID must be given by the column id.
the total number of trees (or trees per little bag if \(L\neq\)`NULL`). Default is 500.
the total number of little bags if providing a bootstrap of little bags estimate for inference. To not include set \(L=\)`NULL`. Default is `NULL`.
the subsampling rate. Default is \(beta=0.9\).
the method used to construct weights. Options are `Pointwise variance`, `Training MSE` or `Test MSE`. Default is `Training MSE`.
the weight structure implemented. Currently supported options are `ar1` and `equicorr`. Default is `equicorr`.
the maximum depth of the decision tree fitting. Default is 30.
the minbucket of the decision tree fitting. Default is 10.
the complexity paramter for decision tree fitting. Default is 0.
the covariate point to optimise weights towards if `weightoptimiser` set to `Pointwise variance`.
the test dataset to optimise weights towards if `weightoptimiser` set to `Test MSE`.
fixes a pre-specified weight structure, given by the relevant `ar1` or `equicorr` parameter. Default is `FALSE` (optimise weights).
whether honest or dishonest trees to be fit. Default is `TRUE`.
Logical indicating whether or not to print computational progress. Default is `TRUE`.
Random seed for sampling. Default is NULL.