generate_ci: Confidence intervals using bootstraping

Description Usage Arguments Author(s) Examples

Description

Generates confidence intervals of a dissever output using bootstraping

Usage

1
2
3
## S4 method for signature 'list,RasterStack'
generate_ci(object, covariates, level = 0.9,
  n = 50L)

Arguments

object

object of class dissever, output from the dissever function

covariates

object of class "RasterStack", the fine-resolution stack of predictive covariates used to generate the dissever output

level

If this is a numeric value, it is used to derive confidence intervals using quantiles. If it is a function, it is used to derive the uncertainty using this function.

n

the number of bootstrap replicates used to derive the confidence intervals

Author(s)

Pierre Roudier

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Load the Edgeroi dataset (see ?edgeroi)
data(edgeroi)

# Create a dissever output
diss <- dissever(
  coarse = edgeroi$carbon,
  fine = edgeroi$predictors,
  method = "lm",
  min_iter = 5, max_iter = 10,
  p = 0.05
)

# Generate the confidence intervals
## Not run: 
ci <- generate_ci(diss, edgeroi$predictors, n = 5)

plot(ci)

## End(Not run)

dissever documentation built on May 1, 2019, 8:42 p.m.