soil: Soil Chemistry Properties Data

Description Usage Format Source Examples

Description

Soil chemistry properties measured on a regular grid with 10 x 25 points spaced by 5 meters.

Usage

1

Format

a data.frame with 250 records and 9 variables.

Source

Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4):1–30.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(soil, package="mcglm")
## neigh <- spdep::tri2nb(soil[,1:2])
## Spatial model
## Z1 <- mc_car(neigh) take too long
Z1 <- mc_id(soil)
# Linear predictor
form.ca <- CA ~ COORD.X*COORD.Y + SAND + SILT + CLAY + PHWATER
fit.ca <- mcglm(linear_pred = c(form.ca), matrix_pred = list(Z1),
               link = "log", variance = "tweedie", covariance = "inverse",
               power_fixed = TRUE, data = soil,
               control_algorith = list(max_iter = 1000, tuning = 0.1,
               verbose = FALSE, tol = 1e-03))
## mc_compute_rho(fit.ca) only for spatial model

wbonat/mcglm documentation built on June 23, 2020, 11:06 a.m.