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

st: Accessing saved results for mean

From   "Michael Lemay" <>
To   <>
Subject   st: Accessing saved results for mean
Date   Tue, 28 Aug 2007 15:40:01 -0400

Hi all,
I am trying to create a dataset of means.  I'm using the following

postfile asa_esttab v1 v2 using asa_esttab, every(1) replace

foreach x in pint pncmp pact {
mean `x' if (country==6)
local `x'n "`e(b)'"
mean `x' if (country==11) [pweight=pscore]
local `x's "`e(b)'"
post asa_esttab (``x'n') (``x's')

postclose asa_esttab

I get the following error message:

matrix not found
post:  above message corresponds to expression 1, variable v1

I know the loop works because when I request the sample size be stored
[e(N)] instead of the mean [e(b)], it runs without a problem.  Any help
is greatly appreciated.


*   For searches and help try:

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