GetGoodness {Delta}R Documentation

Calculate Goodness of fit function

Description

This function provide an Chi-square test for the given matrix, Delta and Pi provided.

Usage

GetGoodness(mx, Pi, Delta)

## S3 method for class 'GetGoodness'
print(x, ...)

Arguments

mx

Matrix. Modified matrix to have a solution. Usually GetMx$M1 for k>2 and GetMx$M2 in case of k = 2.

Pi

Vector. Each element indicate the probability of classify at random an element in category i.

Delta

Vector. Each element indicate the probability of recognize an element i.

x

List produced by GetGoodness

...

Other print options

Value

NULL

Examples

GetGoodness(mx = matrix(c(1,0,0,0,2,0,0,0,3),3,3), Delta = c(1,1,1), Pi = NULL)
GetGoodness(mx = matrix(c(1.5,2.5,0.5,3.5,4.5,0.5,0.5,0.5,1.5),3,3), 
            Delta = c(-0.2662395,  0.2047577,  0.5664672), 
            Pi = c(0.42564365, 0.49700867, 0.07734769))
GetGoodness(mx = matrix(c(60,0,3,2,50,1,3,2,79),3,3), 
            Delta = c( 0.8945724, 0.9522836, 0.8962094), 
            Pi = c( 0.2703707, 0.1939561, 0.5356732))

[Package Delta version 0.2.0.3 Index]