boot_fgeo: Bootstrap values to get site-level estimates and 95%...

Description Usage Arguments Value

View source: R/boot_fgeo.R

Description

Bootstrap values to get site-level estimates and 95% confidence intervals

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
boot_fgeo(
  value,
  weight,
  subplot,
  variable,
  group,
  group2,
  year = NULL,
  dT = NULL,
  kohyama = NULL,
  nrep = 1000,
  para = FALSE
)

Arguments

value

Data to be bootstraped, as a numerical vector.

weight

Weight given to observations, as a numerical vector of same length as value.

subplot

Subplots observations belong to.

variable

Variables observations belong to.

group

Grouping factor (for example size).

group2

Additional grouping factor (for example site).

year

Year observations belong to. Default is NULL.

dT

Time interval (years) between the current census (as in year) and the next one.

kohyama

Name of variables to apply Kohyama correction (2019), should be a vector of length 3 with name of stock variable, influx variable, and outflux variable (in that order). Default is NULL (i.e. correction not applied).

nrep

Default is 1000.

para

Default is FALSE.

Value

A data frame with relevant variables.


cpiponiot/cdynfgeo documentation built on July 7, 2020, 3:27 p.m.