# A noncentral chi square with 5 df and noncentrality 3.
moments_nc_chisq(df = 5, ncp = 3)
# ncp = 0 is the central chi square: mean df, variance 2 * df.
moments_nc_chisq(df = 5)
# Every moment exists for any positive df, so nothing is ever NA.
anyNA(moments_nc_chisq(df = 1, ncp = 10)$value)
Run the code above in your browser using DataLab