Stata 15 help for postrtoe

Title

[P] postrtoe -- Post results stored in r() as e()

Syntax

postrtoe [prefix] [, options]

options Description ------------------------------------------------------------------------- macro(namelist|_all) post only macros specified in namelist or all macros matrix(namelist|_all) post only matrices specified in namelist or all matrices scalar(namelist|_all) post only scalars specified in namelist or all scalars noclear do not clear current e() stored results rename use the names obtained from the specified b matrix as the labels for both the b and V estimation matrices resize replace e(b), e(V), and e(Cns) with their r() equivalents even if e() and r() results are not conformable -------------------------------------------------------------------------

Description

postrtoe clears the contents of e() and copies results from r() to e().

You may prefix stored results with prefix; the maximum length of prefix is 10 characters.

Options

macro(namelist|_all) specifies macros to be posted into e(); for example, macro(cmdline) will move r(cmdline) into e(cmdline). The default is to move all the available macros.

matrix(namelist|_all) specifies matrices to be posted into e(); for example, matrix(C) will move r(C) into e(C). The default is to move all the available matrices.

scalar(namelist|_all) specifies scalars to be posted into e(); for example, scalar(width) will move r(width) into e(width). The default is to move all the available scalars.

Note: macro(), matrix(), and scalar() are exclusive; if you specify scalar(N), only r(N) will be moved into e(N). If you want to move all the macros and matrices alongside r(N), you must type scalar(N) matrix(_all) macro(_all).

noclear tells Stata not to clear e(). Entries in r() will replace identically named entries in e(); otherwise, r() entries will be appended to the e() list.

rename works only if noclear is specified and prefix is not specified. If this is the case, rename tells Stata to use the names obtained from the specified b matrix as the labels for both the b and V estimation matrices. These labels are subsequently used in the output produced by ereturn display.

resize replaces the current e(b), e(V), and e(Cns) results with their r() equivalents, if they exist, even if e() and r() results are not conformable. However, the new set of results must be conformable with each other. For example, if both e(b) and e(V) exist, you may not specify postrtoe, noclear mat(b) resize; you must type mat(b V). resize is not allowed with the e() list returned by regress or anova.

Remarks

Because postrtoe recasts r() results as e(), the command will add e(properties) to the macro list when appropriate.

Examples

Clear e() returned by regress and move r(N) returned by count into e(N)

. regress price mpg . count if foreign==1 . postrtoe

Clear e() returned by regress and move r(N) returned by count into e(cnt_N)

. regress price mpg . count if foreign==1 . postrtoe cnt_

Replace e(N) returned by regress with the contents of r(N) returned by count

. regress price mpg . count if foreign==1 . postrtoe, noclear

Recast r(N) returned by count as e(rep3_N) and add e(rep3_N) to e() list returned by regress

. regress price mpg . count if rep78==3 . postrtoe rep3_, noclear

Replace b and V matrices returned by poisson with b and V matrices returned by margins

. poisson mpg i.rep78 weight price . margins rep78 . postrtoe, mat(b V) noclear resize


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