Spatially Weighted Context Data for Multilevel Modelling (spacom)
Provides tools to construct and exploit spatially weighted context data. Spatial weights are derived by a Kernel function from a user-defined matrix of distances between contextual units. Spatial weights can then be applied either to precise contextual measures or to aggregate estimates based on micro-level survey data, to compute spatially weighted context data. Available aggregation functions include indicators of central tendency, dispersion, or inter-group variability, and take into account survey design weights. The package further allows combining the resulting spatially weighted context data with individual-level predictor and outcome variables, for the purposes of multilevel modelling. An ad hoc stratified bootstrap resampling procedure generates robust point estimates for multilevel regression coefficients and model fit indicators, and computes confidence intervals adjusted for measurement dependency and measurement error of aggregate estimates. As an additional feature, residual and explained spatial dependency can be estimated for the tested models.
Alternative Factor Coding Matrices for Linear Model Formulae (codingMatrices)
A collection of coding functions as alternatives to the standard functions in the stats package, which have names starting with ‘contr.’. Their main advantage is that they provide a consistent method for defining marginal effects in multi-way factorial models. In a simple one-way ANOVA model the intercept term is always the simple average of the class means.
Lightweight GitHub Package Installer (ghit)
A lightweight, vectorized drop-in replacement for ‘devtools::install_github()’ that uses native git and R methods to clone and install a package from GitHub.