format_data {glmmfields} | R Documentation |
Format data for fitting a glmmfields model
Description
Format data for fitting a glmmfields model
Usage
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")
)
Arguments
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.
|
[Package glmmfields version 0.1.8 Index]