fit.power.law: Fit a power-law

View source: R/fitdists.R

fit.power.lawR Documentation

Fit a power-law

Description

Model: y ~ a * x^-lambda

Usage

fit.power.law(x, y, xmin = min(x), xmax = max(x), plot = TRUE, add = TRUE, ...)

Arguments

x

A vector of independent variable.

y

A vector of dependent variable.

xmin

The lower bound point of x.

xmax

The higher truncated point of x.

plot

Whether to plot the fitted curve.

add

Whether to add the fitted curve to current plot.

...

Extra parameters to curve.

Value

A list of values for a and lambda.

See Also

fit_power_law, fit.truncated.power.law


caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.