Dear Lee, Thank you that is helpful.
I was once in Thunder Bay. I drove west from Michigan to Victoria and back.
My wife asked if there was anything north of there. I said it depended on
whether you insisted on streets to get there.
Regards,
David Smith
David W. Smith, Ph.D., M.P.H.
Associate Professor, Biometry
The University of Texas
Health Science Center at Houston
School of Public Health
San Antonio Regional Campus
street address:
8550 Data Point, Suite 200
San Antonio, TX 78229
mail address:
7703 Floyd Curl Dr., Mail Code 7976
San Antonio, TX 78229-3900
voice: (210)567-3560, fax: (210) 567-5942
e-mail at Houston: [email protected]
e-mail at San Antonio: [email protected]
-----Original Message-----
From: Lee Sieswerda [mailto:[email protected]]
Sent: Wednesday, June 11, 2003 4:58 PM
To: '[email protected]'
Subject: st: RE: postfile and post using a large number of items
This is perhaps an oblique answer to your question. One solution to
extracting what you want from a matrix is to cycle through the matrix using
a -forvalues- loop and matrix subscripting, storing the results as macros,
and posting them as you go. Silly example with auto data:
...first set up tempfile, tempname, postfile, etc....
svyset [weight=weight]
svytab rep78 foreign, se
matrix myV = e(V)
matrix myb = e(b)
* The number of columns in the matrix will equal
* the number of cells in the table
local n = colsof(myb)
forvalues x = 1/`n' {
local df = e(df_r)
local N = e(N)
local se = sqrt(myV[`x',`x'])
local est = myb[1,`x']
post blah blah blah
}
This example produces a dataset with all of the proportions and standard
errors from the -svytab- table.
Regards,
Lee
Lee Sieswerda, Epidemiologist
Thunder Bay District Health Unit
[email protected]
-----Original Message-----
From: Smith, David W. [mailto:[email protected]]
Sent: Wednesday, June 11, 2003 4:23 PM
To: '[email protected]'
Subject: st: postfile and post using a large number of items
I would like to use postfile and post with a large number of items, such as
the rates and covariance matrix after svytab. Is it possible to specify the
items as vectors in order to save space and reduce errors?
Thanks,
David
David W. Smith, Ph.D., M.P.H.
Associate Professor, Biometry
The University of Texas
Health Science Center at Houston
School of Public Health
San Antonio Regional Campus
e-mail at Houston: [email protected]
e-mail at San Antonio: [email protected]
*
* 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/
*
* 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/