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

st: logit and LOESS graphs

From   Maarten buis <>
To   stata list <>
Subject   st: logit and LOESS graphs
Date   Fri, 7 Mar 2008 13:05:36 +0000 (GMT)

--- Chris wrote:
> 1. Does anyone know how to perform LOESS in Stata?  I know how to do 

> this in R but I'd prefer to avoid that, because R is memory
> inefficient.
> 2. Is there a way to display a logit curve?

Given the combination of question I am assuming you are looking for
something like the example below. However, there ares some weird jumps
in the lowess curve that I cannot explain. 

-- Maarten

*----------- begin example ------------------
sysuse auto, clear
logit foreign mpg
sort mpg
predict logit, xb
predict pr, pr

twoway lowess foreign mpg || ///
       line pr mpg, name(pr)

twoway lowess foreign mpg, logit || ///
       line logit mpg, name(logit)
*----------------- end example -----------------

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

Rise to the challenge for Sport Relief with Yahoo! For Good
*   For searches and help try:

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