df
degrees
of freedom and optional non-centrality parameter ncp
.mchisq(order, df, ncp = 0)
levchisq(limit, df, ncp = 0, order = 1)
mgfchisq(x, df, ncp = 0, log= FALSE)
TRUE
, the cumulant generating function
is returned.mchisq
gives the $k$th raw moment,
levchisq
gives the $k$th moment of the limited loss
variable, and
mgfchisq
gives the moment generating function in x
.
Invalid arguments will result in return value NaN
, with a warning. Only integer moments are supported for the non central Chi-square
distribution (ncp > 0
).
The limited expected value is supported for the centered Chi-square
distribution (ncp = 0
).
Chisquare
mchisq(2, 3, 4)
levchisq(10, 3, order = 2)
mgfchisq(1, 3, 2)
Run the code above in your browser using DataLab