File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed
Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1- *! version 2.3.3 02nov2025
1+ *! version 2.3.4 11jan2025
22*! Authors: Sergio Correia, Paulo Guimarães, Thomas Zylkin
33*! URL: https://github.com/sergiocorreia/ppmlhdfe
44
Original file line number Diff line number Diff line change @@ -19,9 +19,12 @@ d KW: panel data
1919d KW: separation
2020d
2121d Requires: Stata version 13.1
22- d Required packages: ftools, reghdfe
2322d
24- d Author: Sergio Correia. Board of Governors of the Federal Reserve System
23+ d Required packages:
24+ d ftools
25+ d reghdfe
26+ d
27+ d Author: Sergio Correia. Federal Reserve Bank of Richmond
2528d Support: sergio.correia@gmail.com
2629d
2730d Author: Paulo Guimarães. Banco de Portugal
3033d Author: Thomas Zylkin. University of Richmond
3134d Support: tzylkin@richmond.edu
3235d
33- d Distribution-Date: 20251102
36+ d Distribution-Date: 20260111
3437d
3538f ppmlhdfe.ado
3639f ppmlhdfe_header.ado
Original file line number Diff line number Diff line change 11{smcl}
2- {* * ! version 2.3.3 02nov2025 }{...}
2+ {* * ! version 2.3.4 11jan2025 }{...}
33{vieweralsosee " [R] poisson" " help poisson" }{...}
44{vieweralsosee " [R] xtpoisson" " help xtpoisson" }{...}
55{vieweralsosee " [R] glm" " help glm" }{...}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ program define ppmlhdfe_p
3232
3333 loc opt `mu' `nondefault'
3434 loc y `e(depvar)'
35- loc ifin `" `if ' `in '"'
35+ loc ifin `" `in ' `if '"' // put -in- first so we can add an -if- clause later in some cases
3636
3737 * Default option is mu
3838 if (" `opt'" == " " ) {
@@ -68,7 +68,10 @@ program define ppmlhdfe_p
6868 la var `varlist' " Linear prediction: xb + d[`e(absvars)']"
6969 }
7070 else {
71- qui replace `varlist' = . if mi(`e(d)') `ifin'
71+ * only include "if" when -if- is empty (we can't test against -ifin- because -in- can exist)
72+ loc if_literal = cond(`" `if'"' == " " , " if" , " &" )
73+ di as error `" qui replace `varlist' = . `ifin' `if_literal' mi(`e(d)') "'
74+ qui replace `varlist' = . `ifin' `if_literal' mi(`e(d)')
7275 la var `varlist' " Linear prediction: xb"
7376 }
7477
You can’t perform that action at this time.
0 commit comments