Scroll to navigation

PLFIT(1) User Commands PLFIT(1)

NAME

plfit - fits power-law distributions to empirical data

SYNOPSIS

plfit[OPTIONS] [infile ...]

DESCRIPTION

Reads data points from each given input file and fits a power-lawdistribution to them, one by one, according to the method ofClauset, Shalizi and Newman. If no input files are given, thestandard input will be processed.

This implementation uses the L-BFGS optimization method to findthe optimal alpha for a given xmin in the discrete case. If youwant to use the legacy brute-force approach originally publishedin the above paper, use the -a switch.

OPTIONS

shows this help message
shows version information
use legacy brute-force search for the optimal alphawhen a discrete power-law distribution is fitted.RANGE must be in MIN:STEP:MAX format, the defaultis 1.5:0.01:3.5.
brief (but easily parseable) output format
force continuous fitting even when every sampleis an integer
divide each sample in the input data by VALUE to preventunderflows when fitting discrete power-law distribution
try to provide a p-value with a precision of EPS whenthe p-value is calculated using the exact method. Thedefault is 0.01.
use finite-size correction
use XMIN as the minimum value for x instead of searchingfor the optimal value
print the first four central moments (i.e. mean, variance,skewness and kurtosis) of the input data to helpassessing the shape of the pdf it may have come from.
use METHOD to calculate the p-value. Must be one ofskip, approximate or exact. Default is skip.
use SEED to seed the random number generator
July 2021 plfit