Learn R Programming

BayesianHybridDesign (version 0.1.0)

Frequentist.Analysis: Statistical Analysis Using Frequentist Method

Description

Performs a frequentist analysis of a two-arm study using current data only.

Usage

Frequentist.Analysis(Yt = 20, nt = 40, Yc = 12, nc = 40, conflev = 0.8)

Value

An object of class list with the following values:

  • pt: The response rate of the experimental arm.

  • pc: The response rate of the control arm.

  • delta: The difference in response rates (pt - pc).

  • exactCI.c: A vector containing the Clopper-Pearson confidence interval for the control arm.

  • exactCI.t: A vector containing the Clopper-Pearson confidence interval for the experimental arm.

  • p.fisher: A one-sided p-value from Fisher's exact test, testing the alternative hypothesis that the experimental response rate is greater than the control response rate.

Arguments

Yt

A scalar. The number of responses in the experimental arm.

nt

A scalar. The number of subjects in the experimental arm.

Yc

A scalar. The number of responses in the control arm.

nc

A scalar. The number of subjects in the control arm.

conflev

A scalar. The desired confidence level for the confidence intervals.

Examples

Run this code
Frequentist.Analysis(Yt=18, nt=40, Yc=13, nc=40, conflev=0.8)

Run the code above in your browser using DataLab