# Parameter_Conversion: Easy conversion of parameters between stabledist and stable In stable: Probability Functions and Generalized Regression Models for Stable Distributions

## Description

`sd2s` has stabledist parameter inputs and returns stable parameters. `s2sd` has stable parameter inputs and returns stabledist parameters.

## Usage

 ```1 2 3``` ```sd2s(alpha, beta, gamma, delta, pm = 1) s2sd(tail, skew, disp, loc, pm = 1) ```

## Arguments

 `alpha` the stabledist 'alpha' `beta` the stabledist 'beta' `gamma` the stabledist 'gamma' `delta` the stabledist 'delta' `pm` default 1; currently only value supported. the stabledist parameterization 'pm' `tail` the stable 'tail' analogous to 'alpha' `skew` the stable 'skew' analogous to 'beta' `disp` the stable 'disp' analogous to 'gamma' `loc` the stable 'loc' analogous to 'delta'

## Details

This is a generic function: methods can be defined for it directly or via the `Summary` group generic. For this to work properly, the arguments `...` should be unnamed, and dispatch is on the first argument.

## Value

What you need. See examples.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11``` ```q <- -1 # nolan pm=1 parameters: a <- 1.3 b <- -0.4 c <- 2 d <- 0.75 s <- sd2s(alpha=a, beta=b, gamma=c, delta=d) stable::pstable(q, tail = s\$tail, skew=s\$skew, disp = s\$disp, loc = s\$loc) stabledist::pstable(q, alpha=a, beta=b , gamma=c , delta=d, pm=1) sd <- s2sd(tail = s\$tail, skew=s\$skew, disp = s\$disp, loc = s\$loc) stabledist::pstable(q, alpha=sd\$alpha, beta=sd\$beta , gamma=sd\$gamma , delta=sd\$delta, pm=1) ```

stable documentation built on May 2, 2019, 6:39 a.m.