Learn R Programming

rpact (version 2.0.6)

getNumberOfSubjects: Get Number Of Subjects

Description

Returns the number of recruited subjects at given time vector.

Usage

getNumberOfSubjects(
  time,
  ...,
  accrualTime = C_ACCRUAL_TIME_DEFAULT,
  accrualIntensity = C_ACCRUAL_INTENSITY_DEFAULT,
  maxNumberOfSubjects = NA_real_
)

Arguments

time

A numeric vector with time values.

...

Ensures that all arguments are be named and that a warning will be displayed if unknown arguments are passed.

accrualTime

The assumed accrual time intervals for the study, default is c(0,12) (see details).

accrualIntensity

A vector of accrual intensities, default is the relative intensity 0.1 (see details).

maxNumberOfSubjects

If maxNumberOfSubjects > 0 is specified, the end of accrual at specified accrualIntensity for the specified number of subjects is determined or accrualIntensity is calculated at fixed end of accrual.

Value

Returns a NumberOfSubjects object.

Details

For details of the parameters accrualTime and accrualIntensity see getSampleSizeSurvival.