Description Usage Arguments Details Value Examples
View source: R/progressionGraph.R
This function creates the transition state graph for clinical trials with arbitrary number of
arms, disease progression states and crossovers, returning an object of type ProgressionGraph
.
The disease progression and possible transitions must be the same for each arm and no drop out state is included.
1 2 | SimpleStudyProgressionGraph(arms, armProgression, edges = "immediate",
crossOvers = NULL, visitSchedule = NULL, isVisitNode = FALSE)
|
arms |
a vector of arm names |
armProgression |
a vector of states subjects experience for example "progressing", "progressed". This vector should not include the "death" state |
edges |
determines which edges are to be added for arm
must be one of |
crossOvers |
a vector containing additional transitions of the form |
visitSchedule |
Either a |
isVisitNode |
A logical value. Are the nodes ‘visit’ nodes, i.e. node for which the transition into it is unknown
until the next visit. If TRUE then all nodes in the graph are visit nodes, if false then none are. The function
|
If more complicated disease progression transitions are required then this function can be used in conjunction
with AddArm.ProgressionGraph
, AddEdge.ProgressionGraph
, AddNode.ProgressionGraph
The Weibull shape parameter for the rates for each node will be 1,
to change use SetShape.ProgressionGraph
The edges added by the crossOver argument default to having isResetEdge set to true (i.e. the
patient switch times are reset when transitioning over this edge) This can be changed by calling
SetIsResetEdge.ProgressionGraph
An object of type ProgressionGraph
which details the transition
states of study
1 2 3 4 5 6 | crossOver <- c("control.progressed","active.progressed")
SimpleStudyProgressionGraph(arms=c("control","active"),
armProgression=c("progressing","progressed"),
edge="immediate",
crossOver=crossOver)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.