[R] local regression using loess

Bert Gunter gunter.berton at gene.com
Tue Jul 28 01:32:58 CEST 2009


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of cindy Guo
Sent: Monday, July 27, 2009 4:06 PM
To: r-help at r-project.org
Subject: [R] local regression using loess

Hi, All,

I have a dataset with binary response ( 0 and 1) and some numerical
covariates. I know I can use logistic regression to fit the data. But I want
to consider more locally. So I am wondering how can I fit the data with
'loess' function in R? And what will be the response: 0/1 or the probability
in either group like in logistic regression?

-- Neither. Loess is an algorithm that smoothly "interpolates" the data. It
makes no claim of modeling the probability for a binary response variable. 

-- Bert Gunter
Genentech Nonclinical Statistics

Thank you,
Cindy

	[[alternative HTML version deleted]]

______________________________________________
R-help at 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.




More information about the R-help mailing list