Description Usage Arguments Value Note Author(s) Examples

View source: R/fun.mean.convert.R

A simple transformation of altering the location of RS/FKML GLD so that the theoretical mean is altered to the level specified. Only the first parameter of RS/FKML GLD is altered.

1 | ```
fun.mean.convert(x, param, val = 0)
``` |

`x` |
A vector of four values representing Lambda 1, Lambda 2, Lambda 3 and Lambda 4 of RS/FKML GLD. |

`param` |
Can be "rs" or "fmkl" or "fkml" |

`val` |
The targeted theoretical mean |

A vector of four values representing Lambda 1, Lambda 2, Lambda 3 and Lambda 4 of the transformed RS/FKML GLD

If finite first moment does not exist, original input values will be returned

Steve Su

1 2 3 4 5 6 7 8 9 10 11 | ```
# Transform RS GLD with parameters 3,2,1,1 to mean of 0
fun.mean.convert(c(3,2,1,1),param="rs")
# Check that the desired outcome is achieved
fun.theo.mv.gld(0,2,1,1,param="rs")
# Transform RS GLD with parameters 3,2,1,1 to mean of 5
fun.mean.convert(c(3,2,1,1),param="fkml",5)
# Check that the desired outcome is achieved
fun.theo.mv.gld(5,2,1,1,param="fkml")
``` |

GLDreg documentation built on May 30, 2017, 3:30 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.