Learn R Programming

bda (version 18.3.2)

pro.test: Test effectiveness based on PROs

Description

Tests for effectiveness evaluations based on PROs.

Usage

pro.test(x,y,group,cutoff,x.range,type)

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.

x.range

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

type

Data (grouping/binning) type: 'vas', 'nrs', 'wbf'.

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