Calculates weighting for a model. Each record receives a numeric weight.
.calcWeights(w, data, resp, family)A numeric vector.
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 vector 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 frame
Name of response column
Name of family