ph.moment | R Documentation |
Generate moments up to k-th moments for a given PH distribution.
ph.moment(k, ph, ...)
k |
An integer for the moments to be computed |
ph |
An instance of PH distribution |
... |
Others |
A vector of moments
## create a PH with specific parameters (param1 <- ph(alpha=c(1,0,0), Q=rbind(c(-4,2,0),c(2,-5,1),c(1,0,-1)), xi=c(2,2,0))) ## create a CF1 with specific parameters (param2 <- cf1(alpha=c(1,0,0), rate=c(1.0,2.0,3.0))) ## create a hyper Erlang with specific parameters (param3 <- herlang(shape=c(2,3), mixrate=c(0.3,0.7), rate=c(1.0,10.0))) ## up to 5 moments ph.moment(5, param1) ph.moment(5, param2) ph.moment(5, param3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.