Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
Roman Wörner <h0953997@wu.ac.at> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: 3-way continuous interaction - comparing simple slopes |

Date |
Tue, 21 May 2013 20:58:43 +0200 |

Dear Statalister,

My question is as follows: to my understanding *lincom ($HzHw)-($HzLw)*

Thanks in advance and kind regards, Roman -- use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear rename write y rename read x rename math w rename science z rename socst v1 rename ses v2 generate xz = x*z generate xw = x*w generate zw = z*w generate xzw = x*z*w regress y x z w xz xw zw xzw v1 v2 quietly sum x global hi=r(max) global lo=r(min) quietly sum w global Hw=r(mean)+r(sd) global Lw=r(mean)-r(sd) quietly sum z global Hz=r(mean)+r(sd) global Lz=r(mean)-r(sd) quietly sum v1 global m1=r(mean) quietly sum v2 global m2=r(mean) global HzHw "x + ($Hz)*xz + ($Hw)*xw + ($Hz)*($Hw)*xzw" global HzLw "x + ($Hz)*xz + ($Lw)*xw + ($Hz)*($Lw)*xzw" global LzHw "x + ($Lz)*xz + ($Hw)*xw + ($Lz)*($Hw)*xzw" global LzLw "x + ($Lz)*xz + ($Lw)*xw + ($Lz)*($Lw)*xzw" /* simple slopes */ lincom $HzHw /* slope 1 */ global b1 = r(estimate) lincom $HzLw /* slope 2 */ global b2 = r(estimate) lincom $LzHw /* slope 3 */ global b3 = r(estimate) lincom $LzLw /* slope 4 */ global b4 = r(estimate) /* differences in simple slopes */ lincom ($HzHw)-($HzLw) /* a) HzHw vs HzLw */ lincom ($HzHw)-($LzHw) /* b) HzHw vs LzHw */ lincom ($HzLw)-($LzLw) /* c) HzLw vs LzLw */ lincom ($LzHw)-($LzLw) /* d) LzHw vs LzLw */ lincom ($HzHw)-($LzLw) /* e) HzHw vs LzLw */ lincom ($HzLw)-($LzHw) /* f) HzLw vs LzHw */* * * 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/

**Follow-Ups**:**Re: st: 3-way continuous interaction - comparing simple slopes***From:*David Hoaglin <dchoaglin@gmail.com>

- Prev by Date:
**Re: st: Homogeneity of ordinal Variabel** - Next by Date:
**st: Observations that keep a feature in the whole sample period** - Previous by thread:
**st: COURSE: Longitudinal Analysis Using SPSS & Data Management Using SPSS courses at Imperial College** - Next by thread:
**Re: st: 3-way continuous interaction - comparing simple slopes** - Index(es):