Adds to dat
the logical columns dsr.adjust
and dsr.compute
. dsr.adjust==TRUE
means that z-statistics of this observation will be adjusted by dsr. The adjustment statistics only depend on the reported z value and significant s of sigma. We thus don't need to compute the distribution for all rows with dsr.adjust==TRUE
. If dsr.compute==TRUE
we shall cmpute the derounded distribution for this observations.
1 2 3 4 5 6 7 | dsr.mark.obs(
dat,
h.seq = c(0.05, 0.075, 0.1, 0.2, 0.3, 0.4, 0.5),
z0 = 1.96,
s.max = 100,
no.deround = NULL
)
|
dat |
the data frame, must have columns |
h.seq |
vector of considered windows half-width. We mark an observation for adjustment if it is at risk of missclassification, wrong inclusion, or wrong exclusion for any considered window size. |
z0 |
the signficance threshold for z (default=1.96). |
s.max |
only mark observations for adjustment who have |
no.deround |
a logical vector indicating columns that shall never be derounded |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.