Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: is there apc_ie predict post-estimation?


From   Wincent <[email protected]>
To   [email protected]
Subject   Re: st: is there apc_ie predict post-estimation?
Date   Mon, 3 Jan 2011 10:55:34 +0800

May I ask how to use the three options. It generates an error like this,

. use "apc_example_data.dta", clear
. apc_ie death_f if age<=90,  age(age) period(year) cohort(cohort)
family(poisson) link(log)   exposure(exp_f) agefx(A) cohortfx(C)
periodfx(P)
option agefx() not allowed
r(198);


Regards,
Ronggui

On 1 August 2010 20:24, Steve Samuels <[email protected]> wrote:
> The -help- for -apc_ie-  indicates that it takes -glm- options, and
> inspection of the source code reveals that it indeed calls -glm-. So
> all -glm- post-estimation command should work. The answer to your
> question is "yes", provided you use the agefx(), periodfx() and
> cohortfx() options (not mentioned in the -help-) and keep the
> generated variables. Run the second example in the accompanying do
> file (net describe apc, from(http://fmwww.bc.edu/RePEc/bocode/a) and
> do _not_ drop the generated variables _A* _P* and _C*. Then -predict-
> should work as expected.
>
> Steve
>
> --
> Steven Samuels
> [email protected]
> 18 Cantine's Island
> Saugerties NY 12477
> USA
> Voice: 845-246-0774
> Fax:    206-202-4783

-- 
Wincent Ronggui HUANG (Ph.D.)
City University of Hong Kong
http://asrr.r-forge.r-project.org/rghuang.html

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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