Statalist The Stata Listserver


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

st: RE: -statsby- question


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: RE: -statsby- question
Date   Mon, 13 Feb 2006 18:52:19 -0000

One possibility might be to use -parmby- instead of -statsby-. -parmby-
is part of the -parmest- package, downloadable from SSC, and creates an
output dataset (or resultsset) with 1 observation per parameter per
by-group, and data on estimates, confidence limits, P-values and a
choice of other parameter attributes specified by the user.

An alternative is to use -statsby- to store a dataset with estimates and
standard errors, and then to use the -parmcip- program (part of the
-metaparm- package, downloadable from SSC) to compute confidence limits
and P-values from the estimates and standard errors.

I hope this helps.

Roger


Roger Newson
Lecturer in Medical Statistics
POSTAL ADDRESS:
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute at Imperial College London
St Mary's Campus
Norfolk Place
London W2 1PG
STREET ADDRESS:
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute at Imperial College London
47 Praed Street
Paddington
London W1 1NR
TELEPHONE: (+44) 020 7594 0939
FAX: (+44) 020 7594 0942
EMAIL: [email protected]
WEBSITE: http://www.kcl-phs.org.uk/rogernewson/
Opinions expressed are those of the author, not of the institution.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Daniel
Hoechle
Sent: 13 February 2006 15:30
To: [email protected]
Subject: st: -statsby- question

Dear all

Is it possible to save p-values with -statsby-? I'm looking for
something like

. statsby _b _se ?pval=...?, by(foreign) saving(xyz, replace): reg price
mpg weight

(Of course, one could do something like - statsby _b _se df_r=e(df_r),
by(foreign) saving(xyz, replace): reg price mpg weight - and then
calculate the p-values from the resulting dataset by aid of the -ttail-
function. However, I think there has to be a more direct way.)

Thanks a lot.

Kind regards,
Daniel


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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