WaverR-package: Data Estimation using Weighted Averages of Multiple...

Description Details Author(s) References Examples

Description

For multivariate datasets, this function enables the estimation of missing data using the Weighted AVERage of all possible Regressions using the data available as performed by Sears et al (2008).

Details

The waverr function will estimate all missing values of a dataset by, initially performing linear regressions of all possible combinations of variables using the data available, and subsequently using the average of all available values for each variable to estimate, weighting each estimation based on their log likelihood (see Sears et al 2008). Estimations of the error associated with each estimation are also provided.

Author(s)

Olivia Cheronet, John A. Finarelli

References

Sears, K.E., Finarelli, J.A., Flynn, J.J., & Wyss, A.R. (2008). Estimating body mass in New World "monkeys" (Platyrrhini, Primates), with a consideration of the Miocene platyrrhine, Chilecebus carrascoensis. American Museum Novitates, 3617, 1-29.

Examples

1
2
3
4
5
6
AllIrisMeasurements<-iris[,1:4]
Xremove<-sample(1:150, 20,replace=TRUE)
Yremove<-sample(1:4, 20,replace=TRUE)
AllIrisMeasurementsWithNA<-AllIrisMeasurements
for (i in 1:20){AllIrisMeasurementsWithNA[Xremove[i],Yremove[i]]<-NA}
waverr(RawData=AllIrisMeasurementsWithNA,Nrepeats=100)

Example output

Loading required package: MASS
Loading required package: kimisc
[1] "START reconstruction"
[1] "END reconstruction"
[1] "2019-07-24 10:52:59 UTC"
[1] "START resampling reconstructed data"
[1] "END resampling reconstructed data"
[1] "2019-07-24 10:53:00 UTC"

WaverR documentation built on May 2, 2019, 3:44 a.m.