Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In GAM-based logistic regression pseudo-absence data is necessary to fit the model with corresponent presence data. In many cases, pseudo-absence data are generated 10 times more than presence records in order to ensure sufficient landscape variety in the pseudo-absences. To ensure that the presences and pseudo-absences contributed equally to the model and avoid bias, I would like to know how that case-weighting option can be get with R. For example, I want weight each pseudo-absence as n/1000, where n is the number of presence sites and 10000 are pseudo-absences sites generated randomly.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.