gofPI: Performance Index

Description Usage Arguments Value Author(s) References Examples

Description

Calculates and returns performance index (PI).

Usage

1
gofPI(Obs, Prd, dgt = 3)

Arguments

Obs

Observed or measured values or target vector.

Prd

Predicted or fitted values by the model. Values produced by approximation or regression.

dgt

Number of digits in decimal places. Default is 3.

Value

PerformanceIndex

Goodness of fit: performance index (PI)

Author(s)

Prof. Dr. Ecevit Eyduran, TA. Alper Gulbe

References

Prediction of Selected Reproductive Traits of Indigenous Harnai Sheep under the Farm Management System via various Data Mining Algorithms - Daniel Zaborski, Muhammad Ali, Ecevit Eyduran, Wilhelm Grzesiak, Mohammad Masood Tariq, Ferhat Abbas, Abdul Waheed, Cem Tirink - Pakistan journal of zoology, 2019

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# dummy inputs, independent variable
# integers from 0 to 19
inputs <- 0:19

# dummy targets/observed values, dependent variable
# a product of 2*times inputs minus 5 with some normal noise
targets <- -5 + inputs*1.2 + rnorm(20)

# linear regression model
model<-lm(targets~inputs)

# model's predicted values against targets
predicted<-model$fitted.values

# using library ehaGoF for goodness of fit.
library(ehaGoF)

# Goodness of fit - performance index (PI)
gofPI(targets, predicted)

ehaGoF documentation built on Aug. 11, 2020, 5:08 p.m.

Related to gofPI in ehaGoF...