MeanSigmaResiduals: Regress log(Sigma) on log(Mean) and Calculate Residuals

Description Usage Arguments Value

Description

Run a linear regression to find the relationship between log mean and log standard deviation for one simulation of a parameterization of a network structure. The residuals can then be used as a measure of variability; that is, deviation from expected variability under Taylor's Law.

Usage

1
MeanSigmaResiduals(Mean, Sigma)

Arguments

Mean

A vector of mean population sizes for a single simulation of a single parameterization of a single network structure

Sigma

An associated vector of standard deviations of population sizes for a single simulation of a single parameterization of a single network structure.

Value

if the regression is significant, a vector of residual values. If the log(Sigma) ~ log(Mean) linear relationship is not significant, returns NULL.


elsander/PredictImportance documentation built on May 5, 2019, 3:49 a.m.