permutation_test: Create permuted samples to calculate p-value

Description Usage Arguments

View source: R/permutation_test.R

Description

Create permuted samples to calculate p-value

Usage

1
2
3
permutation_test(object, networks, attr = NULL, teststat, Delta = NULL,
  directed = FALSE, degree.spline = 3, interior.knot = 3,
  lambda.range = seq(-3, 3, by = 0.1), NPerm = 100, seed = 12345)

Arguments

object

A formula object of the form (network object) ~ <model terms>. Model terms take the same form of ERGM terms from R package 'ergm'.

networks

A list of observed networks. It should have a list() object.

attr

A list of vertex attributes. Default is NULL. (i.e. No attributes)

teststat

Test statistic calculated based on observed networks

directed

TRUE for analyzing directed networks. FALSE for analyzing undirected networks.

degree.spline

Degree of splines. Default is 3 (cubic splines).

interior.knot

Number of interior knots to create splines. Default is 10.

lambda.range

Range of lambda (Tuning parameter). Default is seq(-3, 3, by = 0.1).

NPerm

Number of permuted samples. Default is 100.

seed

Seed number used to simulate bootstrap samples. Default is 12345.


jihuilee/VCERGM documentation built on Oct. 9, 2019, 5:23 p.m.