simulateBetas: Estimate Confidence Intervals (CI) for Beta Values in Linear...

Description Usage Arguments Value Examples

View source: R/simulateBetas.R

Description

Calculate the mean, 95 deviation of an estimated beta coefficient.

Usage

1
simulateBetas(field, modelFit, draws = 1000)

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

Value

data.frame, mean, sd and true value 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(simulateBetas(unitSim, unitFit))


## End(Not run)

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