faultdata.smet: Software fault data with s-metrics

View source: R/dataform_poireg.R

faultdata.smetR Documentation

Software fault data with s-metrics

Description

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

Usage

faultdata.smet(formula, data, names = NULL, offset = NULL)

Arguments

formula

An object of class formula. A symbolic description of the model to be fitted. The output variable should be empty.

data

A dataframe for s-metrics.

names

A list for the names of components. This is prioritized to the others.

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.

Details

Since the row.names of data and names of srm.data are used to match the compoments, it had better they all are labelled. If they are not labelled, the pairs are guessed with their order.

Value

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

m

An integer for the number of components.

names

A list for the names of components.

metrics

A matrix for s-metrics.

nmetrics

An integer for the number of types of metrics.

offset

A vector for offset.

Examples

data(tomcat5)
faultdata.smet(~., tomcat5.smet)

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