kolmogorov-smirnov test with paretotails

hey guys,
i fitted data using the paretotails command. Now i have a piecewise distribution X (3 segments: tails GDP, center kernel).
I want to know how got my empirical data fits this distribution i made. x = empirical data y = output of the paretotails command
h = kstest(x,'CDF',y)
does not work.
thx in advance

5 Comments

When you say the kstest function 'does not work', do you mean that it rejects the null hypothesis at the Alpha significance level or does it throw an error? What is the output of the kstest function?
It might be helpful if you were to give us your code and data if possible.
it says: "Error using kstest (line 160) Hypothesized CDF matrix must have 2 columns."
Could you save your variables 'x' and 'y' in a MAT file and attach it here? I might be able to take a look at it and identify the issue.
i attached it. thx in advance for your work!
I don't see the MAT file attached to the comment. Could you try attaching it again?

Sign in to comment.

Answers (0)

Asked:

on 13 Oct 2014

Commented:

on 28 Oct 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!