Re: [R] look at the underlying source code

2012-05-19 Thread Duncan Murdoch
On 12-05-18 12:56 PM, jaimie villanueva wrote: hi someone can show me how can i get the source code of a function. Is a S4 class or Method. (I'm not an expert in R environment) Exactly, Function "ugarchsim" from library (rugarch). I need to know (in detailed ) how the variance and mean ecuation

Re: [R] look at the underlying source code

2012-05-19 Thread R. Michael Weylandt
That means it calls compiled C code so you'll need to download the source code from CRAN to see it. It will be somewhere in the rugarch/src/ directory, but you'll have to find it manually or with a good editor/IDE -- you're out of R now. The primitive() means that .C is itself a primitive function

Re: [R] look at the underlying source code

2012-05-18 Thread R. Michael Weylandt
Unfortunately the task is slightly harder here -- ugarchsim calls a network of S4 code that is a little hard to trace You can get started by typing getMethod("ugarchsim", "uGARCHfit") to see the first step which calls a variety of functions with names like .sgarchsim You'll have to read a

Re: [R] look at the underlying source code

2012-05-18 Thread Rui Barradas
Hello, There are two simple ways, 1. Type the function name without parenthesis at an R prompt; 2. Download the source from CRAN or R-Forge, R is open source. Hope this helps, Rui Barradas jaimie villanueva wrote > > hi > > someone can show me how can i get the source code of a function. Is

[R] look at the underlying source code

2012-05-18 Thread jaimie villanueva
hi someone can show me how can i get the source code of a function. Is a S4 class or Method. (I'm not an expert in R environment) Exactly, Function "ugarchsim" from library (rugarch). I need to know (in detailed ) how the variance and mean ecuation of a arma/garch process are calculated. With oth