frame.to.ld: Generate a 'life.data' object

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate a life.data object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
frame.to.ld(
  frame,
  response.column,
  censor.column,
  case.weight.column,
  failure.mode.column,
  truncation.type.column,
  truncation.response.column,
  time.units = names.the.frame[response.column[1]],
  x.columns = NULL,
  xlabel = NULL,
  data.title = deparse(substitute(frame)),
  data.note = "",
  func.call = match.call(),
  residual.rmd = NULL
)

Arguments

frame

A data.frame class object.

response.column

The column(s) in frame containing the responses (given as numeric column indices or as a character string including the column names).

For reliability data, responses are often the amount of usage (measured in time, distance, cycles) that are recorded when an event occurred.

Events for which responses should be recorded include when one or more units fail or are censored. If the responses are recorded as an interval (i.e. an event occurs between a and b), response.column will accept vector arguments.

censor.column

The numeric index or name (as a character string) of the column in frame that contains the type(s) of censoring (exact failures, right-censoring, left-censoring, interval censoring) occurring at each event.

In practice, several different labels are used to refer to differnt types of censoring. frame.to.ld can accept many of these different labels. To view the list of see SMRDOptionsDefaults.

case.weight.column

The numeric index or name (as a character string) of the column in frame containing the number of events occurring at each entry in the response.column. (optional) This column may be left undefined, in which case it will be assumed that only one unit was observed to have failed/censored for each entry in response.column.

failure.mode.column

The numeric index or name (as a character string) of the column in frame containing the type(s) of failure modes observed. (optional) This column may be left undefined, in which case it will be assumed that only one failure mode was observed

truncation.type.column
truncation.response.column

The time at which an obsevation is trucated.

time.units

A character string denoting the unit of measure used to quantify system lifetime. time.units should be provided for each life.data object as this string will be automatically substituted in many SMRD plots.

x.columns
xlabel
data.note
func.call
residual.rmd

Value

A life.data class object

Author(s)

William Q. Meeker, PhD

See Also

frame.to.rmd, frame.to.ddd, SMRDOptionsDefaults

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# lzbearing data set
lzbearing.ld <- frame.to.ld(lzbearing, 
                            response.column = 1,
                            time.units = "Megacycles")
 
# Example with censoring and truncation
                           
trun.ld <- frame.to.ld(doatrun,
                       response.column = c(1,2),
                       censor.column = 3,
                       case.weight.column = 4,
                       truncation.response.column = 5,
                       truncation.type.column = 6)

## End(Not run)

Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.