|
a |
|
b/man/SingleArmStudy.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/study_constructors.R |
|
|
3 |
\name{SingleArmStudy} |
|
|
4 |
\alias{SingleArmStudy} |
|
|
5 |
\title{Create a \code{Study} object for a single arm trial} |
|
|
6 |
\usage{ |
|
|
7 |
SingleArmStudy(N, study.duration, ctrl.median, k, acc.period, shape = 1, |
|
|
8 |
dropout = NULL, lag.settings = NullLag()) |
|
|
9 |
} |
|
|
10 |
\arguments{ |
|
|
11 |
\item{N}{Number of subjects to be recruit (integer)} |
|
|
12 |
|
|
|
13 |
\item{study.duration}{Number of months the study will be going.} |
|
|
14 |
|
|
|
15 |
\item{ctrl.median}{Median time to an event in the control group.} |
|
|
16 |
|
|
|
17 |
\item{k}{non-uniformity of accrual (integer, 1=uniform). Non-uniform accrual is allowed for |
|
|
18 |
using the following distribution for the probability of a patient entering the trial at time \eqn{b} |
|
|
19 |
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 |
|
|
20 |
measure of non-uniformity (\eqn{k>0}). \eqn{k=1} indicates uniform accrual. This implies that during |
|
|
21 |
the first half of the accrual period, \eqn{1/2^k} of the patients will be recruited. Half of the patients |
|
|
22 |
will be recruited by time \eqn{B/2^{1/k}}.} |
|
|
23 |
|
|
|
24 |
\item{acc.period}{Accrual time.} |
|
|
25 |
|
|
|
26 |
\item{shape}{The Weibull shape parameter} |
|
|
27 |
|
|
|
28 |
\item{dropout}{if subjects drop out in study (due to competing risks not as there is a finite follow up time) |
|
|
29 |
then this argument should contain a list with proportion and time and optionally shape i.e. |
|
|
30 |
\code{dropout=list(proportion=0.03,time=12,shape=1.2)} meaning in the absence of events 3% of subjects |
|
|
31 |
will have dropped out after 12 months with a Weibull hazard rate with shape=1.2. If shape is not included then |
|
|
32 |
it defaults to 1 (exponential rate). If dropout is NULL then no subjects will drop out} |
|
|
33 |
|
|
|
34 |
\item{lag.settings}{The \code{LaggedEffect} object describing any lag effect for the study} |
|
|
35 |
} |
|
|
36 |
\value{ |
|
|
37 |
A \code{Study} object |
|
|
38 |
} |
|
|
39 |
\description{ |
|
|
40 |
Create a \code{Study} object for a single arm trial |
|
|
41 |
} |
|
|
42 |
|