You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Example:
raises an error, while
does not.
At worst a warning should be raised.
The text was updated successfully, but these errors were encountered: