MERFranger: Main function for unit-level MERF

Description Usage Arguments Value

View source: R/MERFranger.R

Description

This function uses forests from the ranger package combined with lmer from lme4. The function is the base-function for following extensions. Offest is equivalent to previous verisons of subtraction. Advantage of offset is the use of the Likelihood as a whole!

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
MERFranger(
  Y,
  X,
  random,
  data,
  initialRandomEffects = 0,
  ErrorTolerance = 1e-04,
  MaxIterations = 25,
  m_try = 1,
  survey_weigths = NULL,
  seed = NULL,
  keep.inbag = FALSE,
  imp = "none"
)

Arguments

Y

metric input value of target variable

X

metric matrix of predictive covariates

random

specification of random effects lmer-style

data

specify sample data

initialRandomEffects

default set to 0

ErrorTolerance

default set to 1e-04

MaxIterations

default to 25

m_try

change the number of trees for split decision. default to 1

survey_weigths

specify survey weights. default to NULL

imp

variable importance passed to ranger

Value

object of class SAEforest


krennpa/SAEforestOld documentation built on Dec. 21, 2021, 7:45 a.m.