.calcWeights {enmSdmX} | R Documentation |
Calculate weights for a model
Description
Calculates weighting for a model. Each record receives a numeric weight.
Usage
.calcWeights(w, data, resp, family)
Arguments
w |
Either logical in which case TRUE (default) causes the total weight of presences to equal the total weight of absences (if family='binomial' ) or a numeric list of weights, one per row in data or the name of the column in data that contains site weights. If FALSE , then each datum gets a weight of 1.
|
data |
Data frame
|
resp |
Name of response column
|
family |
Name of family
|
Value
A numeric vector.
[Package
enmSdmX version 1.1.6
Index]