tests/testthat/_snaps/StatisticalMeasures.md

Function returns correct values

Code
  set.seed(123456)
  StatisticalMeasures(trueData = testMatrix1, imputedData = testMatrix1Res,
    imputedMask = testMatrix1Mask)
Output
                               X1          X2         X3           X4        mean
  TrueMean           -0.571099525 -0.24991605 0.42397056  0.064583148 -0.08311547
  ImpMean            -0.542822592 -0.08596016 0.32411334 -0.003713996 -0.07709585
  AbsDiffTrueImpMean  0.028276932  0.16395589 0.09985722  0.068297145  0.09009680
  GenMean            -0.892863415 -0.63303381 0.30935695  0.578825655 -0.15942865
  GenImpMean         -0.887208030 -0.60024263 0.28938551  0.565166226 -0.15822473
  AbsDiffGenImpMean   0.005655385  0.03279118 0.01997144  0.013659429  0.01801936
  TrueSD              1.549888285  0.51582321 0.72660560  0.343366567  0.78392091
  ImpSD               1.651290877  0.56980539 0.29546576  0.290234559  0.70169914
  AbsDiffTrueImpSD    0.101402593  0.05398218 0.43113984  0.053132008  0.15991415
  GenSD               1.232048554  1.22736828 1.02518086  1.020631251  1.12630723
  GenImpSD            1.254258014  1.24364860 0.98907990  1.025644293  1.12815770
  AbsDiffGenImpSD     0.022209460  0.01628032 0.03610096  0.005013043  0.01990095
Code
  set.seed(123456)
  StatisticalMeasures(trueData = testMatrix2, imputedData = testMatrix2Res,
    imputedMask = testMatrix2Mask)
Output
                               X1          X2         X3        mean
  TrueMean           -0.571099525 -0.24991605 0.42397056 -0.13234834
  ImpMean            -0.542822592 -0.08596016 0.32411334 -0.10155647
  AbsDiffTrueImpMean  0.028276932  0.16395589 0.09985722  0.09736335
  GenMean            -0.892863415 -0.63303381 0.30935695 -0.40551342
  GenImpMean         -0.887208030 -0.60024263 0.28938551 -0.39935505
  AbsDiffGenImpMean   0.005655385  0.03279118 0.01997144  0.01947267
  TrueSD              1.549888285  0.51582321 0.72660560  0.93077236
  ImpSD               1.651290877  0.56980539 0.29546576  0.83885401
  AbsDiffTrueImpSD    0.101402593  0.05398218 0.43113984  0.19550820
  GenSD               1.232048554  1.22736828 1.02518086  1.16153256
  GenImpSD            1.254258014  1.24364860 0.98907990  1.16232883
  AbsDiffGenImpSD     0.022209460  0.01628032 0.03610096  0.02486358
Code
  set.seed(123456)
  StatisticalMeasures(trueData = testDF1, imputedData = testDF1Res, imputedMask = testDF1Mask)
Output
                               V1          V2         V3           V4        mean
  TrueMean           -0.571099525 -0.24991605 0.42397056  0.064583148 -0.08311547
  ImpMean            -0.542822592 -0.08596016 0.32411334 -0.003713996 -0.07709585
  AbsDiffTrueImpMean  0.028276932  0.16395589 0.09985722  0.068297145  0.09009680
  GenMean            -0.892863415 -0.63303381 0.30935695  0.578825655 -0.15942865
  GenImpMean         -0.887208030 -0.60024263 0.28938551  0.565166226 -0.15822473
  AbsDiffGenImpMean   0.005655385  0.03279118 0.01997144  0.013659429  0.01801936
  TrueSD              1.549888285  0.51582321 0.72660560  0.343366567  0.78392091
  ImpSD               1.651290877  0.56980539 0.29546576  0.290234559  0.70169914
  AbsDiffTrueImpSD    0.101402593  0.05398218 0.43113984  0.053132008  0.15991415
  GenSD               1.232048554  1.22736828 1.02518086  1.020631251  1.12630723
  GenImpSD            1.254258014  1.24364860 0.98907990  1.025644293  1.12815770
  AbsDiffGenImpSD     0.022209460  0.01628032 0.03610096  0.005013043  0.01990095
Code
  set.seed(123456)
  StatisticalMeasures(trueData = testDF2, imputedData = testDF2Res, imputedMask = testDF2Mask)
Output
                               V1          V2         V3        mean
  TrueMean           -0.571099525 -0.24991605 0.42397056 -0.13234834
  ImpMean            -0.542822592 -0.08596016 0.32411334 -0.10155647
  AbsDiffTrueImpMean  0.028276932  0.16395589 0.09985722  0.09736335
  GenMean            -0.892863415 -0.63303381 0.30935695 -0.40551342
  GenImpMean         -0.887208030 -0.60024263 0.28938551 -0.39935505
  AbsDiffGenImpMean   0.005655385  0.03279118 0.01997144  0.01947267
  TrueSD              1.549888285  0.51582321 0.72660560  0.93077236
  ImpSD               1.651290877  0.56980539 0.29546576  0.83885401
  AbsDiffTrueImpSD    0.101402593  0.05398218 0.43113984  0.19550820
  GenSD               1.232048554  1.22736828 1.02518086  1.16153256
  GenImpSD            1.254258014  1.24364860 0.98907990  1.16232883
  AbsDiffGenImpSD     0.022209460  0.01628032 0.03610096  0.02486358


Try the FuzzyImputationTest package in your browser

Any scripts or data that you put into this service are public.

FuzzyImputationTest documentation built on April 3, 2025, 9:23 p.m.