Learn R Programming

expirest (version 0.1.6)

compile_wisle_summary: Compile “what-if shelf life estimation” (wisle) assessment results

Description

The function compile_wisle_summary() extracts results from various lists that are generated during the wisle estimation and compiles a summary data frame.

Usage

compile_wisle_summary(
  data,
  batch_vbl,
  rl,
  poi_list,
  icpt_list,
  wcsl_list,
  wcb_list,
  limits_list,
  poi_ich,
  xform = c("no", "no"),
  shift = c(0, 0)
)

Value

A list with two element is returned, containing the following elements:

wc.icpt

A data frame of the worst case intercepts of each of the four fitted models.

POI

A data frame of the intercepts, the differences between release and shelf life limits, the WCSLs, the expiry and release specification limits, the shelf lives and POI values.

Structure of the POI data frame:

Intercept.cics

The intercept of the worst case batch of the cics model.

Intercept.dics

The intercept of the worst case batch of the dics model.

Intercept.dids.pmse

The intercept of the worst case batch of the dids model with pooled mean square error (pmse).

Intercept.dids

The intercept of the worst case batch of the dids model obtained by fitting individual models to the data of each batch.

Delta.cics

Absolute difference between the release and and the shelf life specification of the cics model.

Delta.dics

Absolute difference between the release and and the shelf life specification of the dics model.

Delta.dids.pmse

Absolute difference between the release and and the shelf life specification of the dids model with pooled mean square error (pmse).

Delta.dids

Absolute difference between the release and and the shelf life specification of the dids model obtained by fitting individual models to the data of each batch.

WCSL.cics

WCSL of the cics model.

WCSL.dics

WCSL of the dics model.

WCSL.dids.pmse

WCSL of the dids model with pooled mean square error (pmse).

WCSL.dids

WCSL of the dids model obtained by fitting individual models to the data of each batch.

Exp.Spec

The (expiry) specification, i.e. the specification which is relevant for the determination of the expiry.

Rel.Spec

The calculated release specification.

Shelf.Life.cics

The estimated shelf life of the cics model.

Shelf.Life.dics

The estimated shelf life of the dics model.

Shelf.Life.dids.pmse

The estimated shelf life of the dids model with pooled mean square error (pmse).

Shelf.Life.dids

The estimated shelf life of the dids model obtained by fitting individual models to the data of each batch.

POI.Model.cics

The POI of the cics model.

POI.Model.dics

The POI of the dics model.

POI.Model.dids.pmse

The POI of the dids model with pooled mean square error (pmse).

POI.Model.dids

The POI of the dids model obtained by fitting individual models to the data of each batch.

Arguments

data

A data frame with the columns specified by response_vbl, time_vbl and batch_vbl.

batch_vbl

A character string that specifies the column in data with the grouping information (i.e. a factorial variable) for the differentiation of the observations of the various batches.

poi_list

A list of four elements named cics, dics, dids.pmse and dids with the points of intersection (POI) of each linear regression model and batch. The cics, dics and dids.pmse elements are NA if data of only a single batch is available.

icpt_list

A list of four elements named cics, dics, dids.pmse and dids with the intercepts of each linear regression model and batch. The cics, dics and dids.pmse elements are NA if data of only a single batch is available.

wcsl_list

A list of four elements named cics, dics, dids.pmse and dids with the worst case scenario limits of each batch and linear regression model. The cics, dics and dids.pmse elements are NA if data of only a single batch is available.

wcb_list

A list of four elements named cics, dics, dids.pmse and dids with the indices of the worst case batches. The cics, dics and dids.pmse elements are NA if data of only a single batch is available.

limits_list

A list returned by the set_limits() function.

poi_ich

A numeric named vector of the POI values of the worst case batches of each model.

xform

A vector of two character strings that specifies the transformation of the response and the time variable. The default is “no” transformation, i.e. c("no", "no"), where the first element specifies the transformation of the \(x\) variable and the second element the transformation of the \(y\) variable. Valid alternatives for \(x\) and/or \(y\) variable transformation are "log" (natural logarithm), "sqrt" (square root) and "sq" (square).

shift

A vector of two values which will be added to the variables \(x\) and/or \(y\) before they are transformed as specified by the xform parameter, where the first element will be added to the \(x\) variable and the second element to the \(y\) variable. The purpose is to prevent an undefined state which could arise when variables with values of \(\leq 0\) are log or square root transformed. The default is c(0, 0).

Details

Information stored in multiple lists that are generated during the “what-if shelf life estimation” is extracted and compiled in a single data frame.

See Also

extract_wc_x, extract_from_ll_wcsl, expirest_wisle.