MSE_SAEforest_agg_SIMPLE: MSE function for MERF with aggregated data

Description Usage Arguments Value

Description

MSE function for MERF with aggregated data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
MSE_SAEforest_agg_SIMPLE(
  Y,
  X,
  dName,
  survey_data,
  mod,
  ADJsd,
  Xcensus_agg,
  B = 100,
  popnsize,
  initialRandomEffects = 0,
  ErrorTolerance = 1e-04,
  MaxIterations = 25,
  m_try = 1,
  survey_weigths = NULL,
  seed = 1234
)

Arguments

Y

metric target variable

X

data.frame of covariates

dName

name of group-identifier

survey_data

survey data set

mod

explicit model from SAE_forest_agg

ADJsd

input for adjusted variance

Xcensus_agg

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

B

number of bootstrap replications

popnsize

known number of population size in specific areas

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

seed

default set 1234

Value

returns a data.set with group-identifier and MSE results


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