plotProximalEffect {MRTSampleSize} | R Documentation |
plot the graph for the proximal treatment effect
Description
plot of the graphs for the proximal treatment effect when the trend for the proximal treatment effect is constant, linear or quadractic.
Usage
plotProximalEffect(
days,
occ_per_day,
beta_shape,
beta_mean,
beta_initial,
beta_quadratic_max
)
Arguments
days |
Duration of the study. |
occ_per_day |
Number of decision time points per day. |
beta_shape |
The trend for the proximal treatment effect, choices are constant, linear or quadratic. Note:
|
beta_mean |
Average of proximal treatment effect. |
beta_initial |
Initial value of proximal treatment effect when beta_shape is linear or quadratic. |
beta_quadratic_max |
Day of maximal proximal treatment effect when beta_shape is quadratic. |
Value
A graph for the proximal treatment effect.
Examples
plotProximalEffect(days=42,
occ_per_day=5,
beta_shape="quadratic",
beta_mean=0.1,
beta_initial=0,
beta_quadratic_max=28)