plotExpectAvail: plot the graph for the expected availability

Description Usage Arguments Value Examples

View source: R/PlotExpectAvail.R

Description

plot of the graphs for the expected availability, i.e., the expected probability that a participant is available to receive treatment at a decision time. when the pattern for the expected availability is constant, linear or quadractic.

Usage

1
2
3
4
5
6
7
8
plotExpectAvail(
  days,
  occ_per_day,
  tau_shape,
  tau_mean,
  tau_initial,
  tau_quadratic_max
)

Arguments

days

Duration of the study.

occ_per_day

Number of decision time points per day.

tau_shape

The pattern for expected availability, choices are constant, linear or quadratic. Note:

  1. Constant The expected availability stays constant over the study.

  2. Linear A linearly increasing pattern of expected availability might be used if participants will find the intervention useful and thus more likely to turn the intervention on. A linearly decreasing pattern of expected availability might be used if participants learn more about the intervetion and get bored through the course of the study and thus getting less likely to turn on the invervention.

  3. Quadratic A quadratic pattern of availability. Here the changing point of availability refers to day of either maximal of minimal availability, depending on the input values of initial and average availability.

tau_mean

Average of expected availability.

tau_initial

Initial Value of expected availability when tau_shape is linear or quadratic.

tau_quadratic_max

Changing point of availability when tau_shape is quadratic.

Value

A graph for expected availability.

Examples

1
2
3
4
5
6
   plotExpectAvail(days=42,
                   occ_per_day=5,
                   tau_shape="quadratic",
                   tau_mean=0.5,
                   tau_initial=0.7,
                   tau_quadratic_max=42)

MRTSampleSize documentation built on Sept. 13, 2020, 5:16 p.m.