Displaying 2 results from an estimated 2 matches for "donarus".
Did you mean:
donais
2015 Mar 05
3
Performance issue in stats:::weighted.mean.default method
....na(x); w <- w[i]; x <- x[i] }
- sum((x*w)[w != 0])/sum(w) # --> NaN in empty case
+ sum(x*w)/sum(w) # --> NaN in empty case
}
## see note for ?mean.Date
I hope i'm not missing something - I really don't see the reason to have
this filtration here.
BR
Tadeas 'donarus' Palusga
2015 Mar 05
0
Performance issue in stats:::weighted.mean.default method
...!= 0])/sum(w) # --> NaN in empty case
> + sum(x*w)/sum(w) # --> NaN in empty case
> }
>
> ## see note for ?mean.Date
>
>
> I hope i'm not missing something - I really don't see the reason to have
> this filtration here.
>
> BR
>
> Tadeas 'donarus' Palusga
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South...