gof.test: Perform a goodness-of-fit test

Description Usage Arguments Value Examples

View source: R/tests.R

Description

Perform a goodness-of-fit test

Usage

1
2
3
4
5
6
7
8
gof.test(
  model,
  Beta = TRUE,
  nempirical = NULL,
  parallel = NULL,
  returnBeta = FALSE,
  seed = NULL
)

Arguments

model

ghype model to test

Beta

boolean, whether to use empirical Beta distribution approximation. Default TRUE

nempirical

optional scalar, number of replicates for empirical beta distribution.

parallel

optional, number of cores to use or boolean for parallel computation. If passed TRUE uses all cores-1, else uses the number of cores passed. If none passed performed not in parallel.

returnBeta

boolean, return estimated parameters of Beta distribution? Default FALSE.

seed

scalar, seed for the empirical distribution.

Value

p-value of test. If returnBeta=TRUE returns the p-value together with the parameters of the beta distribution.

Examples

1
2
3
data("adj_karate")
confmodel <- scm(graph = adj_karate, directed = FALSE, selfloops = FALSE)
gof.test(model = confmodel, seed = 123)

ghypernet documentation built on Oct. 15, 2021, 5:14 p.m.