fit.truncated.power.law: Fit a truncated power-law.

View source: R/fitdists.R

fit.truncated.power.lawR Documentation

Fit a truncated power-law.

Description

Model: y ~ a * x^(-lambda) exp(-x/k)

Usage

fit.truncated.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, lambda and k.

See Also

fit.power.law


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