Learn R Programming

wrMisc (version 1.15.3.1)

rowMedSds: Estimate sd Of Median For Each Row By Bootstrap

Description

This function determines the stand error (sd) of the median for each row by bootstraping each row of 'dat'. Note: requires package boot

Usage

rowMedSds(dat, nBoot = 99, silent = FALSE, debug = FALSE, callFrom = NULL)

Value

This functions returns a (numeric) vector with estimated sd values

Arguments

dat

(numeric) matix, main input

nBoot

(integer) number if iterations for bootstrap

silent

(logical) suppress messages

debug

(logical) display additional messages for debugging

callFrom

(character) allows easier tracking of messages produced

See Also

For a more flexible version able to handle lists please look at colMedSds , based on boot

Examples

Run this code
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)), ncol=10)
rowMedSds(dat1) ; plot(rowSds(dat1), rowMedSds(dat1))

Run the code above in your browser using DataLab