Skip to content

Commit f4cb313

Browse files
export dof (#236)
* export dof * Update FixedEffectModels.jl * Update partial_out.jl
1 parent a2602fb commit f4cb313

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/FixedEffectModels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include("fit.jl")
2525
include("partial_out.jl")
2626

2727
# Export from StatsBase
28-
export coef, coefnames, coeftable, responsename, vcov, stderror, nobs, dof_residual, r2, adjr2, islinear, deviance, rss, mss, confint, predict, residuals, fit
28+
export coef, coefnames, coeftable, responsename, vcov, stderror, nobs, dof, dof_residual, r2, r², adjr2, adjr², islinear, deviance, rss, mss, confint, predict, residuals, fit
2929

3030
export reg,
3131
partial_out,

src/partial_out.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Partial out variables in a Dataframe
1818
1919
### Details
2020
`partial_out` returns the residuals of a set of variables after regressing them on a set of regressors. The syntax is similar to `reg` - but it accepts multiple dependent variables. It returns a dataframe with as many columns as there are dependent variables and as many rows as the original dataframe.
21-
The regression model is estimated on only the rows where *none* of the dependent variables is missing. With the option `add_mean = true`, the mean of the initial variable is added to the residuals.
21+
The regression model is estimated on only the rows where *none* of the dependent variables is missing.
22+
Finally, with the option `add_mean = true`, the mean of the initial variable is added to the residuals.
2223
2324
### Examples
2425
```julia

0 commit comments

Comments
 (0)