Re: [R] loess function take

2012-04-13 Thread Liaw, Andy
Alternatively, use only a subset to run loess(), either a random sample or 
something like every other k-th (sorted) data value, or the quantiles.  It's 
hard for me to imagine that that many data points are going to improve your 
model much at all (unless you use tiny span).

Andy


From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Uwe Ligges

On 12.04.2012 05:49, arunkumar wrote:
 Hi

 The function loess takes very long time if the dataset is very huge
 I have around 100 records
 and used only one independent variable. still it takes very long time

 Any suggestion to reduce the time


Use another method that is computationally less expensive for that many 
observations.

Uwe Ligges


 -
 Thanks in Advance
  Arun
 --
 View this message in context: 
 http://r.789695.n4.nabble.com/loess-function-take-tp4550896p4550896.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org 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.

__
R-help@r-project.org 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.
Notice:  This e-mail message, together with any attachme...{{dropped:11}}

__
R-help@r-project.org 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.


Re: [R] loess function take

2012-04-13 Thread Bert Gunter
Since you have only one dependent variable, try using lowess()
instead. It is less flexible -- only does local linear robust fitting
-- but has arguments built in that allow you to sample and interpolate
and limit the number of robustness iterations. It runs considerably
faster as a result.

-- Bert

On Fri, Apr 13, 2012 at 6:32 AM, Liaw, Andy andy_l...@merck.com wrote:
 Alternatively, use only a subset to run loess(), either a random sample or 
 something like every other k-th (sorted) data value, or the quantiles.  It's 
 hard for me to imagine that that many data points are going to improve your 
 model much at all (unless you use tiny span).

 Andy


 From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
 Behalf Of Uwe Ligges

 On 12.04.2012 05:49, arunkumar wrote:
 Hi

 The function loess takes very long time if the dataset is very huge
 I have around 100 records
 and used only one independent variable. still it takes very long time

 Any suggestion to reduce the time


 Use another method that is computationally less expensive for that many
 observations.

 Uwe Ligges


 -
 Thanks in Advance
          Arun
 --
 View this message in context: 
 http://r.789695.n4.nabble.com/loess-function-take-tp4550896p4550896.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org 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.

 __
 R-help@r-project.org 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.
 Notice:  This e-mail message, together with any attachme...{{dropped:11}}

 __
 R-help@r-project.org 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

__
R-help@r-project.org 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.


Re: [R] loess function take

2012-04-13 Thread Duncan Mackay
As lowess() is mentioned another in similar vein is locfit() from 
package locfit


Duncan


Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email home: mac...@northnet.com.au

At 00:07 14/04/2012, you wrote:

Since you have only one dependent variable, try using lowess()
instead. It is less flexible -- only does local linear robust fitting
-- but has arguments built in that allow you to sample and interpolate
and limit the number of robustness iterations. It runs considerably
faster as a result.

-- Bert

On Fri, Apr 13, 2012 at 6:32 AM, Liaw, Andy andy_l...@merck.com wrote:
 Alternatively, use only a subset to run loess(), either a random 
sample or something like every other k-th (sorted) data value, or 
the quantiles.  It's hard for me to imagine that that many data 
points are going to improve your model much at all (unless you use tiny span).


 Andy


 From: r-help-boun...@r-project.org 
[mailto:r-help-boun...@r-project.org] On Behalf Of Uwe Ligges


 On 12.04.2012 05:49, arunkumar wrote:
 Hi

 The function loess takes very long time if the dataset is very huge
 I have around 100 records
 and used only one independent variable. still it takes very long time

 Any suggestion to reduce the time


 Use another method that is computationally less expensive for that many
 observations.

 Uwe Ligges


 -
 Thanks in Advance
  Arun
 --
 View this message in context: 
http://r.789695.n4.nabble.com/loess-function-take-tp4550896p4550896.html

 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org 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.

 __
 R-help@r-project.org 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.
 Notice:  This e-mail message, together with any attachme...{{dropped:11}}

 __
 R-help@r-project.org 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.



--

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

__
R-help@r-project.org 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.


__
R-help@r-project.org 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.


[R] loess function take

2012-04-12 Thread arunkumar1111
Hi

The function loess takes very long time if the dataset is very huge
I have around 100 records
and used only one independent variable. still it takes very long time

Any suggestion to reduce the time 

-
Thanks in Advance
Arun
--
View this message in context: 
http://r.789695.n4.nabble.com/loess-function-take-tp4550896p4550896.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org 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.


Re: [R] loess function take

2012-04-12 Thread Uwe Ligges



On 12.04.2012 05:49, arunkumar wrote:

Hi

The function loess takes very long time if the dataset is very huge
I have around 100 records
and used only one independent variable. still it takes very long time

Any suggestion to reduce the time



Use another method that is computationally less expensive for that many 
observations.


Uwe Ligges



-
Thanks in Advance
 Arun
--
View this message in context: 
http://r.789695.n4.nabble.com/loess-function-take-tp4550896p4550896.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org 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.


__
R-help@r-project.org 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.