format_data | R Documentation |
Format data for fitting a glmmfields model
format_data(
data,
y,
X,
time,
lon = "lon",
lat = "lat",
station = NULL,
nknots = 25L,
covariance = c("squared-exponential", "exponential", "matern"),
fixed_intercept = FALSE,
cluster = c("pam", "kmeans")
)
data |
A data frame to be formatted |
y |
A numeric vector of the response |
X |
A matrix of the predictors |
time |
A character object giving the name of the time column |
lon |
A character object giving the name of the longitude column |
lat |
A character object giving the name of the latitude column |
station |
A numeric vector giving the integer ID of the station |
nknots |
The number of knots |
covariance |
The type of covariance function |
fixed_intercept |
Should the intercept be fixed? |
cluster |
The type of clustering algorithm used to determine the not locations.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.