View source: R/optimal_range.R
Finds optimal range parameter for GP GAM
y |
vector of outcome |
x |
vector of column names of covariates |
coords_cols |
vector of length 2 referring to column names of x and y coordinates |
min_dist |
min range |
max_dist |
max range |
length.out |
number of possible ranges to try |
model_data |
model data |
m1 |
numeric argument (1-5) referring to covariance function to use |
k |
k argument for gam |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.