Just wrote an R function to calculate the generalized hypergeometric function \(pFq\) for real numbers. The function is evaluated based on the series expansion of Pochhammer symbol. The function also allows you to have vectorized input. You can find the code at https://github.com/feng-li/flutils/blob/master/R/math/ghypergeo.R The function depends on the Pochhammer function which is available at https://github.com/feng-li/flutils/blob/master/R/math/pochhammer.R
Author: Feng Li
Dr. Feng Li is an Associate Professor of Statistics in the School of Statistics and Mathematics at Central University of Finance and Economics in Beijing, China. Feng obtained his Ph.D. degree in Statistics from Stockholm University, Sweden in 2013. His research interests include Bayesian computation, econometrics and forecasting, and distributed learning. His recent research output appeared in statistics and forecasting journals such as the International Journal of Forecasting and Statistical Analysis and Data Mining, AI journals such as Expert Systems with Applications, and medical journals such as BMJ Open.
We just announced the SWEDISH RESEARCH STUDENTS CONFERENCE IN STATISTICS, 2013 to be held in Stockholm on April 18-19, 2013. Please visit our web page for more information http://gauss.stat.su.se/doktorand/?page_id=8
I use Rscript as my prime scripting language to perform some command-line tasks. The reason for this is I don’t know much about bash scripts nor perl language. Writing a script in R is very simple if you know R language. But there are a few things need to consider. How to pass arguments to… Continue reading Rscript example