simulateFieldCI: Estimate Confidence Intervals (CI) for Probability Field Via...

Description Usage Arguments Value Examples

View source: R/simulateFieldCI.R

Description

Calculate the mean, 95 deviation of an estimated probability field from a model.

Usage

1
simulateFieldCI(field, modelFit, draws = 1000, chain = 1)

Arguments

field

field object which simulated underlying data

modelFit

fitted model object from the field

draws

int, number of draws for simulation to calculate CI's

chain

int, the chain to use if drawing inference from MCMC model

Value

data.frame, mean, CI, and sd of underlying field.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 

unitSim <- simField(
N = 200, rangeE = .7,
offset = c(0.1, 0.2), 
max.edge = c(0.1,0.2),
beta0 = -2,
betaList = list(
    list(type="random", value=2),
    list(type="spatial", value=-.5),
    list(type="cluster", value=-2)
))

pointDF <- samplePoints(unitSim, 500, 100)

unitFit <- runFieldModel(unitSim, pointDF)

head(simulateFieldCI(unitSim, unitFit))


## End(Not run)

nmmarquez/PointPolygon documentation built on Dec. 10, 2020, 1:15 a.m.