Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: RE: may I run -lowess- in a faster way?


From   "josemaria" <jmpsouza@usp.br>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: RE: may I run -lowess- in a faster way?
Date   Thu, 18 Sep 2008 15:36:42 -0300

Dear Nick:
thank you very much.
So, I┤ll do this! (using rtcspline).
JosÚ Maria
Jose Maria Pacheco de Souza, Professor Titular (aposentado)
Departamento de Epidemiologia/Faculdade de Saude Publica, USP
Av. Dr. Arnaldo, 715
01246-904 - S. Paulo/SP - Brasil
fones (11)3061-7747; (11)3714-2403
fax (11)3714-2403
www.fsp.usp.br/~jmpsouza
----- Original Message ----- From: "Nick Cox" <n.j.cox@durham.ac.uk>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, September 18, 2008 3:06 PM
Subject: st: RE: may I run -lowess- in a faster way?



Don't do that then!
<http://catb.org/jargon/html/D/Don-t-do-that-then-.html>
. u auto
(1978 Automobile Data)
. set rmsg on
r; t=0.00 18:50:22
. set more off
r; t=0.02 18:50:35
. expand 1000
(73926 observations created)
r; t=0.06 18:50:40
. lowess mpg weight
r; t=659.56 19:01:47
. rcspline mpg weight
r; t=7.58 19:02:17
i.e. -rcspline- is ~100 times faster, in one experiment.
Install -rcspline- from -ssc-. Requires version 10.
Nick
n.j.cox@durham.ac.uk

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index