Skip to contents

This function creates a new instance of custom Observation object and validates it. All PML responses are supported (observe, multi, LL, event, count, ordinal)

Usage

ObservationCustom(
  ObservationName = "CObs",
  Type = "observe",
  Statement = "",
  StatementNames = list(),
  Sigma = list(),
  Dobefore = c(),
  Doafter = c(),
  BQL = FALSE,
  BQLValue = NA,
  PMLStructure = character()
)

Arguments

ObservationName

A character string giving the name of the Observation.

Type

One of the following: observe, multi, LL, event, count, ordinal

Statement

A character string giving the RHS of response statement without Type.

StatementNames

A character vector giving the names of variables used in the Statement.

Sigma

a list specifying the chosen sigma value Should be given only if Type == "observe"

Dobefore

A character string specifying the sequence of operations to be performed before current observation event.

Doafter

A character string specifying the sequence of operations to be performed after current observation event.

BQL

A logical value indicating whether the dataset contains BQL values and they should be taken into account (M3 method).

BQLValue

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.

PMLStructure

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().

Value

A new Observation object

See also

Functions used for Observation specification: Observation(), Sigmas(), create_ModelPD(), create_ModelPK(), modify_Observation(), remove_Observation()