Are there functions in R that I can use to create or assign weight (from 0 to 1) to variables? How do I custom make weights based on other variable characteristics (such as geographic location and or urban location(yes=1 or no=2).
I want the weight to increase (the probability to be sampled increases) as the variable (location) gets closer to large urban centers
Any ideas of the R code for this?
Aucun commentaire:
Enregistrer un commentaire