radish_cv: radish cross validation

Description Usage Arguments Value Author(s) Examples

View source: R/radishCV.R

Description

Function to conduct cross validation of 'radish' models

Usage

1
XXX

Arguments

pts

SpatialPoints object of sampled demes

covariates

RasterStack of raster layers for 'radish' model

fmla

Formula for model to be assessed. LHS should be the name of the distance matrix, RHS contains names of layers in 'covariates'

model

c('mlpe', 'wishart')

prop_train

Proportion of sample points used for fitting a training model. The remainder of points will be used in assessment.

fit_full

Should the full 'radish' model with all sample demes be fit (Default = TRUE)

...

Not used

Value

Named list containing the 'radish' model fit to the training data, the loglikehood of the test data, and (optionally) the model fit to the complete data set.

Author(s)

Bill Peterman

Examples

1
2
3
4
## Not Run:
## ** TO BE COMPLETED ** ##  

## End (Not run)

nspope/radishDGS documentation built on Sept. 15, 2020, 10:43 p.m.