Description Usage Arguments Value Examples
View source: R/simulateBetas.R
Calculate the mean, 95 deviation of an estimated beta coefficient.
1 | simulateBetas(field, modelFit, draws = 1000)
|
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 |
data.frame, mean, sd and true value of underlying field.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.