Closed korenmiklos closed 5 days ago
julia> @regress df a _n @if _n < _N
[ Info: The variance-covariance matrix is not invertible. F-statistic not computed
FixedEffectModel
=========================================================================
Number of obs: 9 Converged: true
dof (model): 1 dof (residuals): 6
R²: 1.000 R² adjusted: 1.000
F-statistic: NaN P-value: NaN
=========================================================================
Estimate Std. Error t-stat Pr(>|t|) Lower 95% Upper 95%
─────────────────────────────────────────────────────────────────────────
_n 1.0 0.0 Inf <1e-99 1.0 1.0
(Intercept) 0.0 0.0 NaN NaN 0.0 0.0
=========================================================================
julia> df
10×1 DataFrame
Row │ a
│ Int64
─────┼───────
1 │ 1
2 │ 2
3 │ 3
4 │ 4
5 │ 5
6 │ 6
7 │ 7
8 │ 8
9 │ 9
10 │ 10
rewrites.jl
. Helper functions remained incodegen.jl
.$setup
to the beginning of thequote
block.$teardown
is a function that passes through the argument given to it, while executing some side effects necessary to finish the command. For example, removing_n
if it was added to the df.So, the typical use case is: