Open mcandocia opened 4 years ago
Example:
wtd.var(c(NA,NA,NA), weights=1:3, method='ML') Error in stats::cov.wt(cbind(x), weights, method = "ML") : weights must be non-negative and not all zero
raises an error, while
wtd.var(c(NA,NA,NA), method='ML') # [1] NA
does not.
At worst a warning should be raised.
Example:
raises an error, while
does not.
At worst a warning should be raised.