ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • matrixStats: Summary of functions
    R 2019. 3. 12. 21:55

    matrixStats: Summary of functions

    Henrik Bengtsson on July 23, 2018

    Location and scale estimators

    EstimatorFunctionsExample
    Weighted sample meanweightedMean(), colWeightedMeans(), rowWeightedMeans()weightedMean(x, w); rowWeightedMeans(x, w)
    Meanmean2(), colMeans2(), rowMeans2()mean2(x); rowMeans2(x)
    Medianmedian(), colMedians(), rowMedians()median(x); rowMedians(x)
    Weighted medianweightedMedian(), colWeightedMedians(), rowWeightedMedians()weightedMedian(x, w); rowWeightedMedians(x, w)
    Sample variancevar(), colVars(), rowVars()var(x); rowVars(x)
    Weighted sample varianceweightedVar(), colWeightedVars(), rowWeightedVars()weightedVar(x, w), rowWeightedVars(x, w)
    Sample variance by n-order differencesvarDiff(), colVarDiffs(), rowVarDiffs()varDiff(x); rowVarDiffs(x)
    Sample standard deviationsd(), colSds(), rowSds()sd(x); rowSds(x)
    Weighted sample deviationweightedSd(), colWeightedSds(), rowWeightedSds()weightedSd(x, w), rowWeightedSds(x, w)
    Sample standard deviation by n-order differencessdDiff(), colSdDiffs(), rowSdDiffs()sdDiff(x); rowSdDiffs(x)
    Median absolute deviation (MAD)mad(), colMads(), rowMads()mad(x); rowMads(x)
    Weighted median absolute deviation (MAD)weightedMad(), colWeightedMads(), rowWeightedMads()weightedMad(x, w), rowWeightedMads(x, w)
    Median absolute deviation (MAD) by n-order differencesmadDiff(), colMadDiffs(), rowMadDiffs()madDiff(x); rowMadDiffs()
    Quantilequantile(), colQuantiles(), rowQuantiles()quantile(x, probs); rowQuantiles(x, probs)
    Interquartile range (IQR)iqr(), colIQRs(), rowIQRs()iqr(x); rowIQRs(x)
    Interquartile range (IQR) by n-order differencesiqrDiff(), colIQRDiffs(), rowIQRDiffs()iqrDiff(x); rowIQRDiffs(x)
    Rangerange(), colRanges(), rowRanges()range(x); rowRanges(x)
    Minimummin(), colMins(), rowMins()min(x); rowMins(x)
    Maximummax(), colMaxs(), rowMaxs()max(x); rowMaxs(x)

    Testing for and counting values

    OperatorFunctionsExample
    Are there any missing values?anyMissing(), colAnyMissings(), rowAnyMissings()anyMissing(x); rowAnyMissings(x)
    Does TRUE exists?any(), colAnys(), rowAnys()any(x); rowAnys(x)
    Are all values TRUE?all(), colAlls(), rowAlls()all(x); rowAlls(x)
    Does value exists?anyValue(), colAnys(), rowAnys()anyValue(x, value); rowAnys(x, value)
    Do all elements have a given value?allValue(), colAlls(), rowAlls()allValue(x, value); rowAlls(x, value)
    Number of occurrences of a value?count(), colCounts(), rowCounts()count(x, value); rowCounts(x, value)

    Cumulative functions

    OperatorFunctionsExample
    Cumulative sumcumsum(), colCumsums(), rowCumsums()cumsum(x); rowCumsums(x)
    Cumulative productcumprod(), colCumprods(), rowCumprods()cumprod(x); rowCumprods(x)
    Cumulative minimumcummin(), colCummins(), rowCummins()cummin(x); rowCummins(x)
    Cumulative maximumcummax(), colCummaxs(), rowCummaxs()cummax(x); rowCummaxs(x)

    Binning

    EstimatorFunctionsExample
    Counts in disjoint binsbinCounts()binCounts(x, bx)
    Sample means (and counts) in disjoint binsbinMeans()binMeans(y, x, bx)

    Miscellaneous

    OperationFunctionsExample
    Sumsum2(), colSums2(), rowSums2()sum2(x); rowSums2(x)
    Lagged differencesdiff2(), colDiffs(), rowDiffs()diff2(x), rowDiffs(x)

    matrixStats v0.54.0. Release: CRAN, Development: GitHub.


    [출처] https://cran.r-project.org/web/packages/matrixStats/vignettes/matrixStats-methods.html

Designed by Tistory.