get_powerlaw: Continuous maximum likelihood estimators for fitting the...

View source: R/get_powerlaw.R

get_powerlawR Documentation

Continuous maximum likelihood estimators for fitting the power-law distribution to data. This fuction is based on poweRlaw package using the methods described in Clauset et al, 2009.

Description

Continuous maximum likelihood estimators for fitting the power-law distribution to data. This fuction is based on poweRlaw package using the methods described in Clauset et al, 2009.

Usage

get_powerlaw(incidence, threads = 1, seed = 123, no_of_sims = 1000)

Arguments

incidence

The incidence of interaction in the data data.frame

threads

The number of threads used in boostrapping

seed

Set the seed for replication

no_of_sims

Set the seed number of replications in bootstrap

Value

A list with the power law distribution fitted to incidence data and de p-value of the test

Examples

## Not run: 
#' library(ecointeraction)
data(birdsplasmodiumrelictum)
get_powerlaw(birdsplasmodiumrelictum)

## End(Not run)

alrobles/PNASSubmit-Wildlife-susceptibility-to-infectious-diseases-at-global-scales documentation built on Aug. 2, 2022, 5:15 p.m.