[R] Problems about nonparametric regression with multivariate dependent variables

2013-08-20 Thread Ying Zheng
by evaluating E(y1y1|x=x_0), E(y1y2|x=x_0), E(y2y2|x=x_0) separately. Then put them in the right order to form a 2X2 matrix. Am I right if I do this? And is there direct way to do this? Thank you for suggestions. -- Best Regards, Ying Zheng

[R] How can I do nonparametric regression with multivariate dependent variables.

2013-08-18 Thread Ying Zheng
I have tried several commands in "np" package, like "npregbw". I cannot find a command that can apply to the case with multivariate dependent variables. My original problem is to evaluate several conditional moments nonparametrically. That is E(y|x=x_0) with y a 2X1 variables. I cannot do them sep

[R] Ceiling function gives me wrong answer

2012-11-28 Thread Ying Zheng
Hi all, I have a very simple code, but gives a wrong answer. a=1000 b=1000^(1/3) c=ceiling(a/b) then c=101, if change the code to be a=1000 b=10 c=ceiling(a/b) then c=100 is fine. Thank you for the help. [[alternative HTML version deleted]] __