forked from derek-corcoran-barrios/NetworkExtinction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDegreeDistribution.Rd
41 lines (38 loc) · 1.49 KB
/
DegreeDistribution.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Powerlaw.R
\name{DegreeDistribution}
\alias{DegreeDistribution}
\title{Degree distribution of the network}
\usage{
DegreeDistribution(Network, scale = "arithmetic")
}
\arguments{
\item{Network}{a trophic network of class network}
\item{scale}{a character stating if the graph is on a log-log scale
("LogLog") or arithmetic scale ("arithmetic"), defaults to arithmetic}
}
\value{
exports three principal results:
1. A list with network degree distribution values and with the value of each fit model
2. A list with each model results and AIC of the distribution models
3. A Ghraph of the degree distribution with the models adjust
In DDvalues, k represent the degree of the network and cumulative
the probability that each specie could be have this degree (pk).
Observation: In the graph, the zero values are not represented but this result are incorporate in the DF result
}
\description{
This function calculates the degree distribution of the network. First it
fits exponential, power law and truncated power law distribution models,
and calculates the AIC values to select the best fit, and finally it plots
the degree distribution in a log log scale showing the three fitted models
mentioned above against the observed distribution.
}
\examples{
library(NetworkExtinction)
data("chilean_intertidal")
DegreeDistribution(chilean_intertidal)
}
\author{
Derek Corcoran <[email protected]>
M.Isidora Avila Thieme <[email protected]>
}