Learn R Programming

bda (version 16.1.3)

pro.test: Test effectiveness based on PROs

Description

Tests for effectiveness evaluations based on PROs.

Usage

pro.test(x,y,group,cutoff,class.names,conf.level,x.range,delta)

Value

To be added.

Arguments

x,y

vector of PROs at T0 and T1.

group

Group assignment: control or treatment.

cutoff

Class boundaries to define states. Works only when 'x' and 'y' are numeric.

class.names

Labels/names for the states/classes.

conf.level

confidence level.

x.range

Range of the scores for 'x' and 'y'.

delta

an offset added to the class boundaries for sensitivity analyses.

Details

To be added.

References

To be added.

Examples

Run this code
states <- c("low", "moderate", "high")
x0 <- sample(states, size=100, replace=TRUE)
x1 <- sample(states, size=100, replace=TRUE)
grp <- c(rep("control",50),rep("treatment",50))
pro.test(x=x0,y=x1,group=grp)

Run the code above in your browser using DataLab