I have been trying to plot my financial data against a skewed t distribution in a QQ plot in R for some time now, but I have only managed to do it against a symmetric t distribution so far.
I use the following code for the symmetric t-distribution:
1.Fit the data to a t distribution:
t_mkt <- fit.st(factor_return["2007/2017-10-31"])
df_mkt <- t_mkt$par.ests["nu"]
2.Plot as a QQ Plot:
chart.QQPlot(factor_return["2007/2017-10-31"],
distribution="t",
distributionParameter = "df=df_mkt" ,
main="MKT-Factor t dist. Q-Q Plot")
I know that I can fit the data to a skewed t-distribution with this function:
sstdFit(factor_return["2007/2017-10-31"])
But now I do not know how to plot it as a QQ Plot.