Description Usage Arguments Value Examples
View source: R/runFieldModelUtazi.R
Run a model and estimate underlying latent and probability field from point and polygon data using INLA and Utazi method.
1 2 3 |
field |
field object which simulated underlying data |
pointDF |
data simulated from samplePoints |
polyDF |
data simulated from samplePolygns |
moption |
int, intger indicating how polygon data should be estimated 0 approach. |
verbose |
logical, print model fitting information |
symbolic |
logical, use metas reordering in model fitting |
control |
list, control list passed to nlminb |
rWidth |
int, only used in moption 2 to build besag prior |
aggData |
bool, whether to aggregate data as passed in |
shape3 |
the shape to build the adjaceny matrix with |
List of fitted model objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
unitSim <- simField(
N = 500, 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)
))
polyDF <- samplePolygons(unitSim, round(1200*100/9), rWidth=3)
runFieldModelUtazi(unitSim, polyDF=polyDF, moption=2, rWidth=3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.