I'm trying to create a density plot using census data, where the
weights don't sum to 1.


>plot(density(oh$FINCP,weights=oh$PWGTP))


Warning message:
In density.default(oh$FINCP, weights = oh$PWGTP) :
  sum(weights) != 1  -- will not get true density


How would I go about doing this?


Thanks!

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to