Learn R Programming

kendallRandomWalks

Simulations and distributions related to Kendall random walks: visit dedicated project page on Researchgate

To get started, install stable CRAN version

install.packages("kendallRandomWalks")

or the newest version from Github:

devtools::install_github("mstaniak/kendallRandomPackage")

Help:

?kendallRandomWalks

Main functionalities:

  • simulate_kendall_rw functions simulates Kendall random walks for a given step distribution. The simulation can be then plotted using generic plot function.
  • transform_kendall_rw function allows user to play with different scalings and transformations of Kendall random walks to study its properties related to convergence.
  • summarise_kendall_rw and mutate_kendall_rw functions allow user to modify or summarise simulated trajectories.
  • ladder_moment and ladder_height functions help study distribution of first ladder moment and first ladder height empirically.
  • ladder_moment_pmf gives exact PMF for first ladder moment.
  • pkend, dkend, qkend and rkend are typical functions related to the stable Kendall distribution.
  • g_function calculates Williamson transform numerically.

See vignettes for examples.

If you have a feature request or you found a bug, please leave an issue.

The goal of this package is to let anyone interested in Kendall convolution/generalized convolutions get familiar with them through visual means and experimentation and aid research in this area by providing tools for simulations.

Acknowledgement

This work is a part of project "First order Kendall maximal autoregressive processes and their applications", which is carried out within the POWROTY/REINTEGRATION programme of the Foundation for Polish Science co-financed by the European Union under the European Regional Development Fund.

Copy Link

Version

Install

install.packages('kendallRandomWalks')

Monthly Downloads

137

Version

0.9.4

License

MIT + file LICENSE

Maintainer

Mateusz Staniak

Last Published

August 4th, 2018

Functions in kendallRandomWalks (0.9.4)

kendallRandomWalks

kendallRandomWalks: explore and visualize Kendall random walks.
pkend

CDF of Kendall stable distribution
pkendSym

CDF of symmetrical Kendall stable distribution
qkend

Quantiles of Kendall stable distribution
print.kendall_summary

Print summary of Kendall random walk simulations.
qkendSym

Quantiles of symmetrical Kendall stable distribution
rkend

Pseudo-random number from Kendall stable distribution
kendall_loglik

Log-likelihood for stable kendall distribution with m_alpha = 1
summarise_kendall_rw

Calculate some characteristic for every simulated instance.
plot.kendall_barrier_crossing

Generic function for plotting results of ladder_moment function.
U

Helper function
g_function

Function G(t) - Williamson transform taken at point 1/t.
ladder_moment_pmf

Distribution of the first ladder moment.
transform_kendall_rw

Transforming (scaling and shifting) Kendall random walks
g_function_single

Function G(t) - Williamson transform taken at point 1/t.
print.kendall_barrier_crossing

Generic function for printing result of ladder_moment function
mutate_kendall_rw

Mutate each trajectory.
print.kendall_simulation

Generic function that prints information about simulated Kendall random walk
ladder_height

Estimate the distribution of first ladder height for given level
plot.kendall_fit

QQ-plot for the result of fitting stable Kendall distribtion.
ladder_moment

Estimate the distribution of first ladder moment for given level
plot.kendall_simulation

Generic function that draws simulated trajectories of Kendall random walk
plot.kendall_summary

Plot summary of Kendall random walk simulations.
simulateOneTrajectory

Simulate one trajectory ofa Kendall random walk
simulate_kendall_rw

Simulate multiple trajectories of Kendall random walk
fit_separate

Function for fitting stable Kendall distribution separately to two parts of data
fit_stable_alpha

Fit stable Kendall distribution with one parameter (alpha)
Qn

Helper function
estimate_stable_alpha

Fit alpha parameter using MLE for distribution with one parameter
fit_kendall

Fit stable Kendall distribution for given data and m_alpha function.
Z

Helper function: min/max
dkend

PDF of Kendall stable distribution
full_loglik_gradient

Gradient of minus loglikelihood for stable Kendall distribution with 3 parameters.
full_minus_loglik

Negative loglikelihood for stable Kendall distr. with 3 parameters.