Bookmark and Share

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


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

RE: st: using lowess to compare groups


From   "Mollon, Josephine" <josephine.j.mollon@kcl.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Austin Nichols
Sent: 28 November 2013 15:21
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: using lowess to compare groups

Josephine <josephine.j.mollon@kcl.ac.uk>:
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 <josephine.j.mollon@kcl.ac.uk> 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:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

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


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