Skip to content

Instantly share code, notes, and snippets.

View rmarrotte's full-sized avatar

Robby rmarrotte

View GitHub Profile
@dill
dill / mrf-time.R
Created September 4, 2015 18:50
Example of Markov Random Field with temporal interaction
# Markov Random Fields with temporal interactions
# David L Miller 2015
# Released under MIT license, YMMV
# example from ?mgcv::smooth.construct.mrf.smooth.spec
library(mgcv)
## Load Columbus Ohio crime data (see ?columbus for details and credits)
data(columb) ## data frame