Skip to content

Commit

Permalink
fix: closes #213
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindhebbali committed Jul 19, 2024
1 parent ce96c6a commit 6bfef19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/ols-regress_compute.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ reg_comp <- function(formula, data, conf.level = 0.95, iterm, title = "model") {
sbic <- ols_sbic(model, model)
prsq <- ols_pred_rsq(model)
n <- length(anovam$Df)
mse <- anovam$`Mean Sq`[n]
mse <- mean(model$residuals ^ 2)
error_df <- anovam$Df[n]
model_df <- sum(anovam$Df) - error_df
total_df <- sum(anovam$Df)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/regress-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Model Summary
---------------------------------------------------------------
R 0.909 RMSE 2.468
R-Squared 0.827 MSE 6.964
R-Squared 0.827 MSE 6.093
Adj. R-Squared 0.808 Coef. Var 13.135
Pred R-Squared 0.768 AIC 158.643
MAE 1.907 SBC 165.972
Expand Down Expand Up @@ -45,7 +45,7 @@
Model Summary
---------------------------------------------------------------
R 0.909 RMSE 2.468
R-Squared 0.827 MSE 6.964
R-Squared 0.827 MSE 6.093
Adj. R-Squared 0.808 Coef. Var 13.135
Pred R-Squared 0.768 AIC 158.643
MAE 1.907 SBC 165.972
Expand Down

0 comments on commit 6bfef19

Please sign in to comment.