You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem concerns specifying xmin in powerlaw.Fit as opposed to fitting to data that excludes x-values below xmin.
As you can see from the output below, specifying xmin does not result in a good fit (first plot). However, when I actually remove values below the same xmin from the data, I obtain a good fit (second plot). I obtain xmin through fit.xmin.
Edit:fit.alpha is the same in both cases at 2.85.
When plotting the fitted power law, I would like to include values below xmin in the CCDF of the data and have the power law fit only to to values larger than xmin. But I am lost as to how I can achieve that.
Plot for specifying xmin in powerlaw.Fit:
Plot for removing values below xmin from the data:
xmin=12 in my model.
The main code for the first plot, specifying xmin in powerlaw.Fit, is given below.
Hi & thank you for creating
powerlaw
.My problem concerns specifying
xmin
inpowerlaw.Fit
as opposed to fitting to data that excludes x-values belowxmin
.As you can see from the output below, specifying xmin does not result in a good fit (first plot). However, when I actually remove values below the same xmin from the data, I obtain a good fit (second plot). I obtain xmin through
fit.xmin
.Edit:
fit.alpha
is the same in both cases at 2.85.When plotting the fitted power law, I would like to include values below xmin in the CCDF of the data and have the power law fit only to to values larger than xmin. But I am lost as to how I can achieve that.
Plot for specifying xmin in
powerlaw.Fit
:Plot for removing values below xmin from the data:
xmin=12 in my model.
The main code for the first plot, specifying xmin in
powerlaw.Fit
, is given below.Thank you for your time!
The text was updated successfully, but these errors were encountered: