prepareGradient {Hmsc}R Documentation

prepareGradient

Description

prepares a user-made environmental and/or spatial gradient to be used for prediction

Usage

prepareGradient(hM, XDataNew, sDataNew)

Arguments

hM

a fitted Hmsc model object.

XDataNew

a dataframe of the new XData.

sDataNew

a named list of the new sData, where the name gives the spatial random level.

Details

The dataframe XDataNew is the for output as for input. The main purpose of this function is to prepare the study design and random levels so that predictions can be made with the predict function. Note that the difference between constructGradient and prepareGradient is that while prepareGradient takes as input the new environmental and spatial data, constructGradient generates those data to represent a new environmental gradient.

Value

a named list with members XDataNew, studyDesignNew and rLNew

See Also

constructGradient, predict


[Package Hmsc version 3.0-13 Index]