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]

From |
"Nic" <[email protected]> |

To |
<[email protected]> |

Subject |
st: Programming a slightly complex list of independent variables |

Date |
Wed, 6 Apr 2011 00:51:55 -0400 |

Hi statalist

Here is the applicable code of what I have so far: ------------------------------------------------------------------------- foreach y of varlist d* { local laby : variable label `y' foreach x of varlist s* { local labx : variable label `x' local prex = substr("`x'",1,3) foreach z of varlist f* { local labz : variable label `z' local prez = substr("`z'",1,2) regress `y' `x' `z' i`prex'`prez' g* c* e* s* f* --------------------------------------------------------------------------

---------------------- matrix b=e(b) matrix V=e(V) scalar b1=b[1,1] scalar b2=b[1,2] scalar b3=b[1,3] scalar varb1=V[1,1] scalar varb2=V[2,2] scalar varb3=V[3,3] scalar covb1b3=V[1,3] scalar covb2b3=V[2,3] -----------------------

With gratitude,

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

**Follow-Ups**:

- Prev by Date:
**st: Xtoverid, cluster(clusvar) noisily** - Next by Date:
**Re: st: Xtmixed specification for rmANOVA with 2 within-subject factors** - Previous by thread:
**st: Xtoverid, cluster(clusvar) noisily** - Next by thread:
**Re: st: Programming a slightly complex list of independent variables** - Index(es):