Learn R Programming

⚠️There's a newer version (0.4.0) of this package.Take me there.

disaggregation (version 0.1.4)

Disaggregation Modelling

Description

Fits disaggregation regression models using 'TMB' ('Template Model Builder'). When the response data are aggregated to polygon level but the predictor variables are at a higher resolution, these models can be useful. Regression models with spatial random fields. A useful reference for disaggregation modelling is Lucas et al. (2019) .

Copy Link

Version

Install

install.packages('disaggregation')

Monthly Downloads

247

Version

0.1.4

License

MIT + file LICENSE

Maintainer

Tim Lucas

Last Published

September 6th, 2022

Functions in disaggregation (0.1.4)

as.disag_data

Function to fit the disaggregation model
fit_model

Fit the disaggregation model
print.disag_prediction

Print function for disaggregation prediction
predict_uncertainty

Function to predict uncertainty from the model result
print.disag_model

Print function for disaggregation fit result.
predict.disag_model

Predict mean and uncertainty from the disaggregation model result
plot.disag_prediction

Plot mean and uncertainty predictions from the disaggregation model results
print.disag_data

Print function for disaggregation input data
predict_model

Function to predict mean from the model result
prepare_data

Prepare data for disaggregation modelling
plot.disag_data

Plot input data for disaggregation
summary.disag_data

Summary function for disaggregation input data
summary.disag_model

Summary function for disaggregation fit result
summary.disag_prediction

Summary function for disaggregation prediction
plot.disag_model

Plot results of fitted model
build_mesh

Build mesh for disaggregaton model
dummy

Roxygen commands
disaggregation-deprecated

Deprecated functions in disaggregation
getCovariateRasters

Get a RasterStack of covariates from a folder containing .tif files
getStartendindex

Function to match pixels to their corresponding polygon
parallelExtract

Parallel extraction of raster stack by shape file.
make_model_object

Create the TMB model object for the disaggregation model
getPolygonData

Extract polygon id and response data into a data.frame from a SpatialPolygonsDataFrame