Se ha borrado un texto insertado con un juego de caracteres sin especificar... Nombre: no disponible Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070521/f7808713/attachment.pl
Source code of add1
3 messages · Antonio José Sáez Castillo, Duncan Murdoch, Uwe Ligges
On 21/05/2007 4:57 AM, Antonio Jos? S?ez Castillo wrote:
We are developing a new regression model. We now need to develop an analogous to add1 in stat package. My problem is about update.formula, but I think I could solve this problem if I can get source code of add1. So, can I get the source code of add1?
It's in https://svn.r-project.org/R/trunk/src/library/stats/R/add.R or substitute "tags/R-x-y-z" for "trunk" if you want to see what it looked like in R version x.y.z. Duncan Murdoch
Antonio Jos? S?ez Castillo wrote:
We are developing a new regression model. We now need to develop an analogous to add1 in stat package. My problem is about update.formula, but I think I could solve this problem if I can get source code of add1. So, can I get the source code of add1?
Sure. What is the problem? You can easily look into them after download (or a bit less convenient even directly in R): add1 # ah, it's generic! methods(add1) # its methods ## Let's look into two methods: stats:::add1.default stats:::add1.lm You might also want to look into the following R News article: Ligges, U. (2006): R Help Desk: Accessing the Sources. R News 6 (4), 43-45. Uwe Ligges
------------------------------------ Prof. Dr. Antonio Jos? S?ez Castillo Dpto. de Estad?stica e Investigaci?n Operativa. Universidad de Ja?n Escuela Polit?cnica Superior de Linares. Dep. A-229 c/ Alfonso X El Sabio 28. 23700 LINARES (Ja?n). ESPA?A. Tel?fono +34 953/648578. Fax +34 953/648578 http://www4.ujaen.es/~ajsaez/ [[alternative HTML version deleted]] ------------------------------------------------------------------------
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.