Skip to content

Commit 540b43c

Browse files
authored
Add reconstruct method to the regression model (#12)
1 parent 8c21ed6 commit 540b43c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/regressionmodel.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,19 @@ function predict! end
9393
Return the residual degrees of freedom of the model.
9494
"""
9595
function dof_residual end
96+
97+
"""
98+
reconstruct(model::RegressionModel[, newY])
99+
100+
Reconstruct explanatory variables from `model`.
101+
An object with new response values `newX` can be supplied, which should have
102+
the same type and structure as the output of [`predict(model)`](@ref).
103+
"""
104+
function reconstruct end
105+
106+
"""
107+
reconstruct!
108+
109+
In-place version of [`reconstruct`](@ref).
110+
"""
111+
function reconstruct! end

0 commit comments

Comments
 (0)