Learn R Programming

poweRlaw (version 0.30.0)

bootstrap_moby: Example bootstrap results for the full Moby Dick data set

Description

To explore the uncertainity in the model fit, this package provides a bootstrap function. [object Object],[object Object] The bootstrap_moby values correspond to the first row of table 6.1 in the Clauset et al paper: [object Object],[object Object]

The bootstrap_p_moby gives the p-value for the hypothesis test of whether the data follows a power-law. For this simulation study, we get a value of 0.43 (the paper gives 0.49).

Arguments

docType

data

format

A list

source

M. E. J. Newman, "Power laws, Pareto distributions and Zipf's law." Contemporary Physics 46, 323 (2005). See http://tuvalu.santafe.edu/~aaronc/powerlaws/data.htm for further details.

See Also

moby, bootstrap, bootstrap_p

Examples

Run this code
## Generate the bootstrap_moby data set
data(moby)
m = displ$new(moby)
bs = bootstrap(m, no_of_sims=5000, threads=4, seed=1)

#' ## Generate the bootstrap_p_moby data set
bs_p = bootstrap_p(m, no_of_sims=5000, threads=4, seed=1)

Run the code above in your browser using DataLab