Statalist The Stata Listserver

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

st: Re: adjust problem (solution)

From   "Dimitriy V. Masterov" <>
To   Statalist <>
Subject   st: Re: adjust problem (solution)
Date   Tue, 29 Aug 2006 18:59:28 -0400

In case anyone is interested, I came up with a solution that works
around the limitations of parsing and string length:

foreach outcome in o1 o2 o3 {;
probit `outcome' x1 x2 x3 age age2 ;
local a: colfullnames e(b);
local b "age age2 _cons";
local c: list a - b;
adjust `c","_cons","",.)' if e(sample), pr by(age age2) gen(`outcome'_hat)
*   For searches and help try:

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