[R] How to bypass the pause in a program invoked using the "system" command

2015-12-16 Thread Zhiqiu Hu
Dear Friends, I want to run a standalone console program (emBayesB) from R script on windows console. However, because the program asks user to press the enter key at each time after the analysis, the R code always stuck after invoking the emBayesB program with the "system()" function. For reprod

[R] How to remove the second line generated by addHeader function in the rtf package

2014-10-10 Thread Zhiqiu Hu
Dear friends, The addHeader function in the rtf package always generates two rows of texts even if a subtitle was not specified. Is there any way to stop the function from generating the second blank line? FYI, I cannot use the other functions, such as the addParagram and the addText, because the

[R] How to define a "nonlin.function" object for the spherical function to be used in the gnm model?

2014-06-20 Thread Zhiqiu Hu
Hi, I encountered with some difficulty in preparing the nonlin.function for the gnm function. Please help me. I want to use the gnm function in the "gnm" package to fit the following spherical function y = a + b (1.5*x - 0.5 *(x/c)) if x< c y = a + b

[R] How to estate the correlation between two autocorrelated variables

2013-01-09 Thread Zhiqiu Hu
Dear R users, In my data, there are two variables t1 and t2. For each observation of t1 and t2, two location indicators (x, y) were provided. The data format is #x y t1 t2 Since the both t1 and t2 are depended on x and y, t1 and t2 are autocorrelated variables. My question is how to ca

[R] Theoretical confidence regions for any non-symmetric bivariate statistical distributions

2012-12-19 Thread Zhiqiu Hu
Respected R Users, I looking for help with generating theoretical confidence regions for any of non-symmetric bivariate statistical distributions (bivariate Chi-squared distribution, bivariate F-distribution, or any of the others). I want to to used it as a benchmark to compare a few strategies co

[R] How to modify the values of the parameters passing via ...

2012-08-30 Thread Zhiqiu Hu
Dear Friends, Let's assume there are three parameters that were passed into fun1. In fun1, we need to modify one para but the remains need to be untouched. And then all parameters were passed into fun2. However, I have failed to achieve it. Please see the following code.

[R] inquire a statistical terms

2012-08-08 Thread Zhiqiu Hu
Dear all, Is there any standard statistical terminology describing the points beyond a confidence region? Obviously, the "outlier" is improper here. Please help me if you happens have the info. Thanks you very much for your kindly help. Best wishes, Zhiqiu [[alternative HTML version de

[R] Need your help setting $R_check_force_suggests = "FALSE" on Windows system

2012-05-15 Thread Zhiqiu Hu
r-help@r-project.org Dear friends, I want to make the following change of R setting on a windows 7 desktop. $R_check_force_suggests = "FALSE" Since I have no experience using Unix, I don't how to make the suggestions in "writing R extension" works for windows. I will appreciate if you would hel