faultdata.dmet: Software fault data with d-metrics

View source: R/dataform_logit.R

faultdata.dmetR Documentation

Software fault data with d-metrics

Description

Function faultdata.dmet() creates a list to store the fault data and dymanic metrics (d-metrics)that are used to esiamte model parameters of SRM.

Usage

faultdata.dmet(formula, data, offset = NULL)

Arguments

formula

An object of class formula. A symbolic description of the model to be fitted. The output variable should be the column for the number of faults.

data

A dataframe for d-metrics and the number of faults.

offset

An integer. This can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be NULL or a numeric vector of length equal to the number of cases.

Value

A list with the attribute class='Rsrat.faultdata.dmet';

fault

A vector for the number of detected faults.

metrics

A matrix for d-metrics.

total

An integer for the number of total faults.

nmetrics

An integer for the number of types of metrics.

offset

A vector for offset.

len

An integer for the number of data records.

Examples

data(dmet)
faultdata.dmet(fault~., dmet.ds1)

okamumu/msrat documentation built on Jan. 17, 2024, 11:55 a.m.