Skip to content

Commit

Permalink
Prevent crash on no observations
Browse files Browse the repository at this point in the history
  • Loading branch information
droodman committed Dec 11, 2023
1 parent 4ef8c85 commit ccee881
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reghdfejl.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! reghdfejl 0.4.3 9 December 2023
*! reghdfejl 0.4.3 10 December 2023

// The MIT License (MIT)
//
Expand Down Expand Up @@ -281,6 +281,8 @@ program define reghdfejl, eclass
}
jl PutVarsToDFNoMissing `vars' if `touse' // put all vars in Julia DataFrame named df
qui jl: size(df,1)
_assert `r(ans)', rc(2001) msg(insufficient observations)
if "`compact'" !="" drop _all
Expand Down Expand Up @@ -486,4 +488,4 @@ end
* 0.4.0 Added mask and unmask
* 0.4.1 Handle varlists with -/?/*/~
* 0.4.2 Set version minima for some packages
* 0.4.3 Add julia.ado version check. Fix bug in posting sample size.
* 0.4.3 Add julia.ado version check. Fix bug in posting sample size. Prevent crash on insufficient observations.

0 comments on commit ccee881

Please sign in to comment.