Learn R Programming

doseSens (version 1.0.0)

sharp_double_statistic: Statistic based on inner product between transformations of dose and outcome.

Description

Statistic based on inner product between transformations of dose and outcome.

Usage

sharp_double_statistic(z, r, q1, q2)

Value

a vector with values corresponding to the inner product of transformed by q1 permutations of z with transformed by q2 versions of r.

Arguments

z

a vector of doses

r

a vector of outcomes

q1

a function that transforms the doses z

q2

a function that transforms the outcomes r

Examples

Run this code
# dose vector
dose <- c(0, 0.1, 0.4)
# outcome vector
outcome <- c(1, 1.1, 1.5)
# transforms
transform1 <- function(x) x
transform2 <- function (x) x
theta <- sharp_double_statistic(z = dose, r = outcome, q1 = transform1,
q2 = transform2)

Run the code above in your browser using DataLab