graph_data_spde {MetricGraph} | R Documentation |
Data extraction for 'spde' models
Description
Extracts data from metric graphs to be used by 'INLA' and 'inlabru'.
Usage
graph_data_spde(
graph_spde,
name = "field",
repl = NULL,
group = NULL,
group_col = NULL,
only_pred = FALSE,
loc_name = NULL,
tibble = FALSE,
drop_na = FALSE,
drop_all_na = TRUE,
loc = deprecated()
)
Arguments
graph_spde |
An |
name |
A character string with the base name of the effect. |
repl |
Which replicates? If there is no replicates, one
can set |
group |
Which groups? If there is no groups, one
can set |
group_col |
Which "column" of the data contains the group variable? |
only_pred |
Should only return the |
loc_name |
Character with the name of the location variable to be used in 'inlabru' prediction. |
tibble |
Should the data be returned as a |
drop_na |
Should the rows with at least one NA for one of the columns be removed? DEFAULT is |
drop_all_na |
Should the rows with all variables being NA be removed? DEFAULT is |
loc |
Value
An 'INLA' and 'inlabru' friendly list with the data.