This function creates a new instance of custom Observation object and validates it.
All PML responses are supported (observe
, multi
, LL
, event
, count
, ordinal
)
ObservationCustom(
ObservationName = "CObs",
Type = "observe",
Statement = "",
StatementNames = list(),
Sigma = list(),
Dobefore = c(),
Doafter = c(),
BQL = FALSE,
BQLValue = NA,
PMLStructure = character()
)
A new Observation object
A character string giving the name of the Observation.
One of the following: observe
, multi
, LL
, event
, count
, ordinal
A character string giving the RHS of response statement without Type
.
A character vector giving the names of variables used in the Statement
.
a list specifying the chosen sigma value Should be given only if
Type == "observe"
A character string specifying the sequence of operations to be performed before current observation event.
A character string specifying the sequence of operations to be performed after current observation event.
A logical value indicating whether the dataset contains BQL values and they should be taken into account (M3 method).
An optional numeric positive value of static LLOQ. Applicable
only when BQL argument is TRUE
. Any observed value less than or equal to
that LLOQ value is treated as censored.
Character specifying the name of PML structure in which
the observation should be added. For the naming convention of
PMLStructures, see Details section of create_ModelPK()
.
Functions used for Observation specification:
Observation()
,
Sigmas()
,
create_ModelPD()
,
create_ModelPK()
,
modify_Observation()
,
remove_Observation()