[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: graph mean and sd over/by category
> I was writing a reply to George Hoffman's question, when
> Vince Wiggins reply
> popped into my mail box. I have a question for Vince.
> First, here was what I
> was suggesting for George.
> bysort foreign: egen mean = mean(weight)
> bysort foreign: egen sd = sd(weight)
> bysort foreign: gen ub = mean +
> bysort foreign: gen lb = mean -
> twoway (rcap lb ub foreign) (scatter mean foreign)
> This gives the same results as -ci-. Specifically, it gives
> a 95% CI with
> the t critical value based on _N-1 observations within
> strata (of foreign in
> this case). It is -ci-'s results that I gather Nick Cox is
> using to produce
> his new -ciplot- (pardon me Nick, if I'm misrepresenting you).
* For searches and help try: