Learn R Programming

SpatioTemporal (version 1.1.7)

pred.mesa.model: Example of a predictSTmodel structure

Description

Example of a predictions for the model in mesa.model using predict.STmodel. Two sets of predictions are presented, pred.mesa.model and pred.mesa.model.obs.

Arguments

Format

A list with elements, see the return description in predict.STmodel.

References

M. A. Cohen, S. D. Adar, R. W. Allen, E. Avol, C. L. Curl, T. Gould, D. Hardie, A. Ho, P. Kinney, T. V. Larson, P. D. Sampson, L. Sheppard, K. D. Stukovsky, S. S. Swan, L. S. Liu, J. D. Kaufman. (2009) Approach to Estimating Participant Pollutant Exposures in the Multi-Ethnic Study of Atherosclerosis and Air Pollution (MESA Air). Environmental Science & Technology: 43(13), 4687-4693.

See Also

predict.STmodel for prediction. createSTmodel for creation of the originating STmodel object.

Other example data: est.cv.mesa, est.mesa.model, MCMC.mesa.model, mesa.data.raw, mesa.model

Examples

Run this code
# NOT RUN {
##load data
data(mesa.model)
data(est.mesa.model)

##find regression parameters using GLS
x.reg <- predict(mesa.model, est.mesa.model, only.pars = TRUE)
str(x.reg$pars)

# }
# NOT RUN {
  ##compute predictions at all locations, including beta-fields
  pred.mesa.model <- predict(mesa.model, est.mesa.model,
                             pred.var=TRUE)
# }
# NOT RUN {
##Let's load precomputed results instead.
data(pred.mesa.model)

##study results
print(pred.mesa.model)
# }

Run the code above in your browser using DataLab