mulsam.test | R Documentation |
A simulation data set for testing use of spatial hierarchical structure and samples overlapping on certain locations.
data(mulsam.test)
A list of three items called "data", "coords" and "beta". Item "data" is a data frame with 873 observations at 25 locations and the following 6 variables.
y
a numeric vector, dependent variable y
g1
a numeric vector, group level independent variable g_1
g2
a numeric vector, group level independent variable g_2
z1
a numeric vector, sample level independent variable z_1
x1
a numeric vector, sample level independent variable x_1
group
a numeric vector, group id of each sample
where g1
and g2
are used to estimate local fixed effects;
x1
is used to estimate global fixed effects
and z1
is used to estimate random effects.
Yigong Hu yigong.hu@bristol.ac.uk
data(mulsam.test)
hgwr(formula = y ~ L(g1 + g2) + x1 + (z1 | group),
data = mulsam.test$data,
coords = mulsam.test$coords,
bw = 10, kernel = "bisquared")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.