dchisq(x, df) pchisq(q, df, ncp=0) qchisq(p, df) rchisq(n, df)
Assume that the noncentral chisquare is the sum of df independent Gaussian random variables, then the noncentrality parameter is equal to the sum of the squared means of the Gaussian variables. See Posten (1989) for a description of the computing algorithm for noncentrality in pf.
Posten, H. O. (1989). An effective algorithm for the noncentral chi-squared distribution function. The American Statistician 43 261-263.
1-pchisq(stat,df) # p-value for stat# power of a test for several noncentrality values 1 - pchisq(qchisq(.95, 8), 8, 0:10)