dsr.mark.obs: Finds observations in dat for which we shall perform dsr...

Description Usage Arguments

View source: R/deround_dsr.R

Description

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.

Usage

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
)

Arguments

dat

the data frame, must have columns z and s

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 s <= s.max. Default value is 100.

no.deround

a logical vector indicating columns that shall never be derounded


skranz/RoundingMatters documentation built on Dec. 23, 2021, 3:23 a.m.