new.q: Helper function

Description Usage Arguments Value Author(s)

View source: R/SurrogateOutcome.R

Description

Helper function; should not be called directly by user. This function differs from the quantile function in that it returns an NA when there are NAs in the supplied vector, rather than causing an error.

Usage

1
new.q(x, p)

Arguments

x

vector of numeric values

p

sample quantile that is desired

Value

returns either NA or the desired sample quantile

Author(s)

Layla Parast


SurrogateOutcome documentation built on Nov. 15, 2021, 5:08 p.m.