SAEforest_agg_wSet: Main function for means of MERF with aggregated data

Description Usage Arguments Value

View source: R/SAEforest_agg_wSet.R

Description

Main function for means of MERF with aggregated data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
SAEforest_agg_wSet(
  Y,
  X,
  dName,
  survey_data,
  Xcensus_agg,
  initialRandomEffects = 0,
  ErrorTolerance = 1e-04,
  MaxIterations = 25,
  m_try = 1,
  survey_weigths = NULL,
  OOsample_obs = 25,
  wSet,
  w_min = 3
)

Arguments

Y

metric target variable

X

data.frame of covariates

dName

name of group-identifier

survey_data

survey data set

Xcensus_agg

aggregated census level covariates. Note that the first column should include the group identifier

initialRandomEffects

default set to 0

ErrorTolerance

default set to 1e-04

MaxIterations

default to 25

m_try

default set to 1

survey_weigths

default set to NULL

wSet

insert columnNames depending on importance from RF

w_min

minimal amount of influence variables to still attempt to calculate a weight

Value

returns object with Mean Predictions, model details and the modified dataset including weights


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