Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Felix Andrews
I guess you have the binary distribution, not the R source code. The functions you want seem to be defined in the files dchisq.c and dnchisq.c in https://svn.r-project.org/R/trunk/src/nmath/ 2009/1/17 zhijie zhang rusers...@gmail.com: Dear all, I want to see the source codes for dchisq(x,

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Duncan Murdoch
On 17/01/2009 2:23 AM, zhijie zhang wrote: Dear all, I want to see the source codes for dchisq(x, df, ncp=0, log = FALSE), but cannot find it. I input dchisq in the R interface, and then enter, the following message return: dchisq /*/

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Murray Cooper
Dear Dr Murdoch, I understand in principle your explanation, but specifically where in the source distribution are these functions found? For instance, I would like to look at the code for model.matrix. Ex: ans - .Internal(model.matrix(t, data)) I have looked at the source distribution but

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Gabor Grothendieck
Look for do_modelmatrix here: https://svn.r-project.org/R/trunk/src/main/model.c On Sat, Jan 17, 2009 at 5:40 PM, Murray Cooper myrm...@earthlink.net wrote: Dear Dr Murdoch, I understand in principle your explanation, but specifically where in the source distribution are these functions

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Peter Dalgaard
Murray Cooper wrote: Dear Dr Murdoch, I understand in principle your explanation, but specifically where in the source distribution are these functions found? For instance, I would like to look at the code for model.matrix. Ex: ans - .Internal(model.matrix(t, data)) I have looked at the

[R] Where to find the source codes for the internal function in stats package

2009-01-16 Thread zhijie zhang
Dear all, I want to see the source codes for dchisq(x, df, ncp=0, log = FALSE), but cannot find it. I input dchisq in the R interface, and then enter, the following message return: dchisq /*/ function (x, df, ncp = 0, log = FALSE) { if