testpl: Test the fit of a power law to the degree distribution of the...

Description Usage Arguments Value Examples

View source: R/dd.testpl.R

Description

Test the fit of a power law to the degree distribution of the language network.

Usage

1
testpl(model, getraw = F)

Arguments

model

A power law model already fitted to the raw data.

Value

If getraw = F, returns the raw bootstrap output. Can be used for further analysis or visualization. If getraw = T, returns means and sds of the estimated parameters from the bootstrap.

Examples

1
2
3
4
5
6
7
8
testpl(model.pl, getraw = F)
# xmin mean, xmin sd, alpha mean, alpha sd, p value will be listed
# interpreting the p-value: if p value is not sig, cannot reject H0
# i.e., we cannot rule out the power law model
# H0: data is generated from a power law distribution.
# H1: data is not generated from a power law distribution.
bspresults <- testpl(model.pl, getraw = T)
# returns the raw outputs of the bootstrap

csqsiew/langnetr documentation built on May 14, 2019, 10:37 a.m.