Learn R Programming

catnet (version 1.16.1)

cnPearsonTest-method: Goodness of Fit Test

Description

The function calculates the Pearson's chi-square statistics for all nodes of a network.

Usage

cnPearsonTest(object, data)

Value

A list

Arguments

object

a catNetwork

data

a data matrix or data.frame

Author

N. Balov

Details

For given data and network object, the function reports both the chi-square statistics and the degree of freedom for each node in the network for the purpose of performing goodness of fit tests.