Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: using lowess to compare groups

From   "Mollon, Josephine" <>
To   "" <>
Subject   RE: st: using lowess to compare groups
Date   Mon, 2 Dec 2013 09:47:35 +0000

Thank you for your help, it's much appreciated. Would you be able to detail what the syntax you attached does exactly? 

-----Original Message-----
From: [] On Behalf Of Austin Nichols
Sent: 28 November 2013 15:21
Subject: Re: st: using lowess to compare groups

Josephine <>:
Consider a regression using a spline in age (help mkspline) and its interaction:

sysuse nlsw88, clear
g w=race==1
mkspline a_ = age, cubic nknots(4)
foreach v of var a_* {
 gen w`v'=w*`v'
reg wage a_* w wa_*
predict what
sc what age

On Thu, Nov 28, 2013 at 10:07 AM, Mollon, Josephine <> wrote:
> Hi, I am using Stata 10 and want to model the association between age and a continuous variable, but also look at group differences in this association. The groups are symptomatic and control groups. I have used lowess smoothing to create graphs of my data, but don't know how to use lowess to obtain a statistical model.

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index