Learn R Programming

expirest (version 0.1.6)

get_wc_icpt: Get intercepts of the worst case batches

Description

The function get_wc_icpt() prepares a vector of the intercepts of the worst case batches of all the regression models fitted to the data.

Usage

get_wc_icpt(data, batch_vbl, icpt_list, poi_list, wc_batch, xform)

Value

A named vector of the intercepts of the worst case batches is returned.

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.

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.

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.

wc_batch

A numeric vector of the indices of the worst case batches of each model type, i.e. a vector of four elements named cics, dics, dids.pmse and dids. The cics element is NA because in the “common intercept / common slope” model the data from different batches is pooled.

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

Details

The function get_wc_icpt() extracts the worst case batches from the list of intercepts (icpt_list), given that the estimation of the corresponding POIs (poi_list) was successful.

See Also

get_icpt_list, get_poi_list, get_osle_poi_list, get_wisle_poi_list, expirest_osle, expirest_wisle.