|
a |
|
b/man/CRGIStudy.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/study_constructors.R |
|
|
3 |
\name{CRGIStudy} |
|
|
4 |
\alias{CRGIStudy} |
|
|
5 |
\title{Create a \code{Study} object for a CRGI type study} |
|
|
6 |
\usage{ |
|
|
7 |
CRGIStudy(alpha, power, HR, r, N, study.duration, ctrl.time, ctrl.proportion, k, |
|
|
8 |
acc.period, two.sided, shape = 1, followup, dropout = NULL, |
|
|
9 |
lag.settings = NullLag()) |
|
|
10 |
} |
|
|
11 |
\arguments{ |
|
|
12 |
\item{alpha}{Significance level [0,1] (see also two-sided indicator)} |
|
|
13 |
|
|
|
14 |
\item{power}{Power [0,1]} |
|
|
15 |
|
|
|
16 |
\item{HR}{Hazard ratio to be detected} |
|
|
17 |
|
|
|
18 |
\item{r}{Control:Experimental subject balance (1:r), i.e. nE/nC=r. r=1 corresponds to equally |
|
|
19 |
many subjects in both arms. 2 means we have twice the number of subjects in the experimental arm.} |
|
|
20 |
|
|
|
21 |
\item{N}{Number of subjects to be recruit (integer)} |
|
|
22 |
|
|
|
23 |
\item{study.duration}{Number of months the study will be going.} |
|
|
24 |
|
|
|
25 |
\item{ctrl.time}{The time at which \code{ctrl.proportion} of the control group have had an event. |
|
|
26 |
Used to set the event rate} |
|
|
27 |
|
|
|
28 |
\item{ctrl.proportion}{The proportion of control arm subjects who have had an event by time \code{time}} |
|
|
29 |
|
|
|
30 |
\item{k}{non-uniformity of accrual (integer, 1=uniform). Non-uniform accrual is allowed for |
|
|
31 |
using the following distribution for the probability of a patient entering the trial at time \eqn{b} |
|
|
32 |
within the accrual period \eqn{[0,B]}: \eqn{F(b)=b_k/B_k}; \eqn{f(b)=k b_{k-1}/B_k} where \eqn{k} is the |
|
|
33 |
measure of non-uniformity (\eqn{k>0}). \eqn{k=1} indicates uniform accrual. This implies that during |
|
|
34 |
the first half of the accrual period, \eqn{1/2^k} of the patients will be recruited. Half of the patients |
|
|
35 |
will be recruited by time \eqn{B/2^{1/k}}.} |
|
|
36 |
|
|
|
37 |
\item{acc.period}{Accrual time.} |
|
|
38 |
|
|
|
39 |
\item{two.sided}{If TRUE, two sided test will be used (i.e. alpha/2).} |
|
|
40 |
|
|
|
41 |
\item{shape}{The Weibull shape parameter} |
|
|
42 |
|
|
|
43 |
\item{followup}{The follow up time for each subject} |
|
|
44 |
|
|
|
45 |
\item{dropout}{if subjects drop out in study (due to competing risks not as there is a finite follow up time) |
|
|
46 |
then this argument should contain a list with proportion and time and optionally shape i.e. |
|
|
47 |
\code{dropout=list(proportion=0.03,time=12,shape=1.2)} meaning in the absence of events 3% of subjects |
|
|
48 |
will have dropped out after 12 months with a Weibull hazard rate with shape=1.2. If shape is not included then |
|
|
49 |
it defaults to 1 (exponential rate). If dropout is NULL then no subjects will drop out} |
|
|
50 |
|
|
|
51 |
\item{lag.settings}{The \code{LaggedEffect} object describing any lag effect for the study} |
|
|
52 |
} |
|
|
53 |
\value{ |
|
|
54 |
A \code{Study} object |
|
|
55 |
} |
|
|
56 |
\description{ |
|
|
57 |
Create a \code{Study} object for a CRGI type study |
|
|
58 |
} |
|
|
59 |
|