diff --git a/tests/testthat/_snaps/backward-aic-details.md b/tests/testthat/_snaps/backward-aic-details.md deleted file mode 100644 index 3f132954..00000000 --- a/tests/testthat/_snaps/backward-aic-details.md +++ /dev/null @@ -1,123 +0,0 @@ -# output is as expected when details == TRUE - - Code - blr_step_aic_backward(model, details = TRUE) - Output - Backward Elimination Method - --------------------------- - - Candidate Terms: - - 1 . female - 2 . read - 3 . science - 4 . math - 5 . prog - 6 . socst - - Step 0: AIC = 162.4241 - honcomp ~ female + read + science + math + prog + socst - - ------------------------------------------------- - Variable DF AIC BIC Deviance - ------------------------------------------------- - prog 1 158.953 178.743 146.953 - socst 1 160.745 183.834 146.745 - read 1 163.394 186.482 149.394 - science 1 163.815 186.903 149.815 - female 1 169.570 192.658 155.570 - math 1 170.017 193.105 156.017 - ------------------------------------------------- - - - x prog - - - Step 1 : AIC = 158.9527 - honcomp ~ female + read + science + math + socst - - ------------------------------------------------- - Variable DF AIC BIC Deviance - ------------------------------------------------- - socst 1 157.286 173.777 147.286 - science 1 159.941 176.432 149.941 - read 1 160.307 176.798 150.307 - female 1 166.114 182.606 156.114 - math 1 168.669 185.161 158.669 - ------------------------------------------------- - - x socst - - - Step 2 : AIC = 157.2856 - honcomp ~ female + read + science + math - - ------------------------------------------------- - Variable DF AIC BIC Deviance - ------------------------------------------------- - science 1 158.420 171.613 150.420 - read 1 160.658 173.851 152.658 - female 1 164.988 178.181 156.988 - math 1 168.236 181.430 160.236 - ------------------------------------------------- - - No more variables to be removed. - - Variables Removed: - - - prog - - socst - - - Final Model Output - ------------------ - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------ - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------ - data honcomp 200 199 195 TRUE - ------------------------------------------------------------------------ - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 147 1 53 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ----------------------------------------------------------------- - Parameter DF Estimate Std. Error z value Pr(>|z|) - ----------------------------------------------------------------- - (Intercept) 1 -14.5773 2.1568 -6.7589 0.0000 - female1 1 1.3622 0.4605 2.9580 0.0031 - read 1 0.0631 0.0281 2.2455 0.0247 - science 1 0.0569 0.0326 1.7429 0.0814 - math 1 0.1113 0.0338 3.2992 0.0010 - ----------------------------------------------------------------- - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8835 Somers' D 0.7669 - % Discordant 0.1165 Gamma 0.7669 - % Tied 0.0000 Tau-a 0.3003 - Pairs 7791 c 0.8835 - --------------------------------------------------------------- - - - - Backward Elimination Summary - -------------------------------------------- - Variable AIC BIC Deviance - -------------------------------------------- - Full Model 162.424 188.811 146.424 - prog 158.953 178.743 146.953 - socst 157.286 173.777 147.286 - -------------------------------------------- - - diff --git a/tests/testthat/_snaps/backward-p-details.md b/tests/testthat/_snaps/backward-p-details.md deleted file mode 100644 index 0d539ec3..00000000 --- a/tests/testthat/_snaps/backward-p-details.md +++ /dev/null @@ -1,171 +0,0 @@ -# output is as expected when details == TRUE - - Code - blr_step_p_backward(model, details = TRUE) - Output - Backward Elimination Method - --------------------------- - - Candidate Terms: - - 1 . female - 2 . read - 3 . science - 4 . math - 5 . prog - 6 . socst - - We are eliminating variables based on p value... - - - prog - - Backward Elimination: Step 1 - - Variable prog Removed - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------ - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------ - data honcomp 200 199 194 TRUE - ------------------------------------------------------------------------ - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 147 1 53 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ----------------------------------------------------------------- - Parameter DF Estimate Std. Error z value Pr(>|z|) - ----------------------------------------------------------------- - (Intercept) 1 -14.8131 2.2101 -6.7024 0.0000 - female1 1 1.3351 0.4634 2.8813 0.0040 - read 1 0.0558 0.0309 1.8050 0.0711 - science 1 0.0561 0.0329 1.7036 0.0885 - math 1 0.1086 0.0342 3.1761 0.0015 - socst 1 0.0155 0.0270 0.5738 0.5661 - ----------------------------------------------------------------- - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8822 Somers' D 0.7643 - % Discordant 0.1178 Gamma 0.7643 - % Tied 0.0000 Tau-a 0.2992 - Pairs 7791 c 0.8822 - --------------------------------------------------------------- - - - - - socst - - Backward Elimination: Step 2 - - Variable socst Removed - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------ - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------ - data honcomp 200 199 195 TRUE - ------------------------------------------------------------------------ - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 147 1 53 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ----------------------------------------------------------------- - Parameter DF Estimate Std. Error z value Pr(>|z|) - ----------------------------------------------------------------- - (Intercept) 1 -14.5773 2.1568 -6.7589 0.0000 - female1 1 1.3622 0.4605 2.9580 0.0031 - read 1 0.0631 0.0281 2.2455 0.0247 - science 1 0.0569 0.0326 1.7429 0.0814 - math 1 0.1113 0.0338 3.2992 0.0010 - ----------------------------------------------------------------- - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8835 Somers' D 0.7669 - % Discordant 0.1165 Gamma 0.7669 - % Tied 0.0000 Tau-a 0.3003 - Pairs 7791 c 0.8835 - --------------------------------------------------------------- - - - - - No more variables satisfy the condition of p value = 0.3 - - - Variables Removed: - - - prog - - socst - - - Final Model Output - ------------------ - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------ - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------ - data honcomp 200 199 195 TRUE - ------------------------------------------------------------------------ - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 147 1 53 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ----------------------------------------------------------------- - Parameter DF Estimate Std. Error z value Pr(>|z|) - ----------------------------------------------------------------- - (Intercept) 1 -14.5773 2.1568 -6.7589 0.0000 - female1 1 1.3622 0.4605 2.9580 0.0031 - read 1 0.0631 0.0281 2.2455 0.0247 - science 1 0.0569 0.0326 1.7429 0.0814 - math 1 0.1113 0.0338 3.2992 0.0010 - ----------------------------------------------------------------- - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8835 Somers' D 0.7669 - % Discordant 0.1165 Gamma 0.7669 - % Tied 0.0000 Tau-a 0.3003 - Pairs 7791 c 0.8835 - --------------------------------------------------------------- - - - - Elimination Summary - ---------------------------------------------------- - Variable - Step Removed AIC BIC Deviance - ---------------------------------------------------- - 1 prog 158.9527 178.7427 146.9527 - 2 socst 157.2856 173.7772 147.2856 - ---------------------------------------------------- - diff --git a/tests/testthat/_snaps/backward-p.md b/tests/testthat/_snaps/backward-p.md deleted file mode 100644 index 0f07f0fc..00000000 --- a/tests/testthat/_snaps/backward-p.md +++ /dev/null @@ -1,78 +0,0 @@ -# output from backward variable p elimination is as expected - - Code - blr_step_p_backward(model) - Output - Backward Elimination Method - --------------------------- - - Candidate Terms: - - 1 . female - 2 . read - 3 . science - 4 . math - 5 . prog - 6 . socst - - We are eliminating variables based on p value... - - Variables Removed: - - - prog - - socst - - No more variables satisfy the condition of p value = 0.3 - - - Final Model Output - ------------------ - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------ - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------ - data honcomp 200 199 195 TRUE - ------------------------------------------------------------------------ - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 147 1 53 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ----------------------------------------------------------------- - Parameter DF Estimate Std. Error z value Pr(>|z|) - ----------------------------------------------------------------- - (Intercept) 1 -14.5773 2.1568 -6.7589 0.0000 - female1 1 1.3622 0.4605 2.9580 0.0031 - read 1 0.0631 0.0281 2.2455 0.0247 - science 1 0.0569 0.0326 1.7429 0.0814 - math 1 0.1113 0.0338 3.2992 0.0010 - ----------------------------------------------------------------- - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8835 Somers' D 0.7669 - % Discordant 0.1165 Gamma 0.7669 - % Tied 0.0000 Tau-a 0.3003 - Pairs 7791 c 0.8835 - --------------------------------------------------------------- - - - - Elimination Summary - ---------------------------------------------------- - Variable - Step Removed AIC BIC Deviance - ---------------------------------------------------- - 1 prog 158.9527 178.7427 146.9527 - 2 socst 157.2856 173.7772 147.2856 - ---------------------------------------------------- - diff --git a/tests/testthat/_snaps/forward-aic-details.md b/tests/testthat/_snaps/forward-aic-details.md deleted file mode 100644 index 7fc96a8e..00000000 --- a/tests/testthat/_snaps/forward-aic-details.md +++ /dev/null @@ -1,110 +0,0 @@ -# output from forward variable selection is as expected - - Code - blr_step_aic_forward(model, details = TRUE) - Output - Forward Selection Method - ------------------------ - - Candidate Terms: - - 1 . female - 2 . read - 3 . science - - Step 0: AIC = 233.2888 - honcomp ~ 1 - - ------------------------------------------------- - Variable DF AIC BIC Deviance - ------------------------------------------------- - read 1 183.063 189.660 179.063 - science 1 195.777 202.373 191.777 - female 1 231.354 237.950 227.354 - ------------------------------------------------- - - - + read - - - Step 1 : AIC = 183.063 - honcomp ~ read - - ------------------------------------------------- - Variable DF AIC BIC Deviance - ------------------------------------------------- - female 1 176.887 186.782 170.887 - science 1 178.710 188.605 172.710 - ------------------------------------------------- - - + female - - - Step 2 : AIC = 176.8874 - honcomp ~ read + female - - ------------------------------------------------- - Variable DF AIC BIC Deviance - ------------------------------------------------- - science 1 168.236 181.430 160.236 - ------------------------------------------------- - - + science - - - Variables Entered: - - + read - + female - + science - - - Final Model Output - ------------------ - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------ - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------ - data honcomp 200 199 196 TRUE - ------------------------------------------------------------------------ - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 147 1 53 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ----------------------------------------------------------------- - Parameter DF Estimate Std. Error z value Pr(>|z|) - ----------------------------------------------------------------- - (Intercept) 1 -12.7772 1.9755 -6.4677 0.0000 - read 1 0.1035 0.0258 4.0186 1e-04 - female1 1 1.4825 0.4474 3.3139 9e-04 - science 1 0.0948 0.0305 3.1129 0.0019 - ----------------------------------------------------------------- - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8561 Somers' D 0.7147 - % Discordant 0.1425 Gamma 0.7136 - % Tied 0.0014 Tau-a 0.2794 - Pairs 7791 c 0.8568 - --------------------------------------------------------------- - - - Selection Summary - --------------------------------------------------- - Step Variable AIC BIC Deviance - --------------------------------------------------- - 1 read 183.063 189.660 179.063 - 2 female 176.887 176.887 176.887 - 3 science 168.236 168.236 168.236 - --------------------------------------------------- - diff --git a/tests/testthat/_snaps/stepwise-p-details.md b/tests/testthat/_snaps/stepwise-p-details.md deleted file mode 100644 index 39122f66..00000000 --- a/tests/testthat/_snaps/stepwise-p-details.md +++ /dev/null @@ -1,207 +0,0 @@ -# output from forward variable p selection is as expected - - Code - blr_step_p_both(model, details = TRUE) - Output - Stepwise Selection Method - --------------------------- - - Candidate Terms: - - 1. x1 - 2. x2 - 3. x3 - 4. x4 - 5. x5 - 6. x6 - - We are selecting variables based on p value... - - - Stepwise Selection: Step 1 - - - x6 added - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------- - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------- - data y 20000 19999 19995 TRUE - ------------------------------------------------------------------------- - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 10041 1 9959 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ------------------------------------------------------------------ - Parameter DF Estimate Std. Error z value Pr(>|z|) - ------------------------------------------------------------------ - (Intercept) 1 -1.5229 0.0287 -53.1387 0.0000 - x1 1 1.0381 0.0287 36.1728 0.0000 - x2 1 0.9910 0.0285 34.7112 0.0000 - x3 1 1.0365 0.0290 35.7651 0.0000 - x6 1 -0.0102 0.0193 -0.5290 0.5968 - ------------------------------------------------------------------ - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8910 Somers' D 0.7820 - % Discordant 0.1090 Gamma 0.7820 - % Tied 0.0000 Tau-a 0.3910 - Pairs 99998319 c 0.8910 - --------------------------------------------------------------- - - - - - Stepwise Selection: Step 2 - - - x5 added - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------- - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------- - data y 20000 19999 19994 TRUE - ------------------------------------------------------------------------- - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 10041 1 9959 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ------------------------------------------------------------------ - Parameter DF Estimate Std. Error z value Pr(>|z|) - ------------------------------------------------------------------ - (Intercept) 1 -1.5228 0.0287 -53.1294 0.0000 - x1 1 1.0388 0.0287 36.1852 0.0000 - x2 1 0.9919 0.0286 34.7282 0.0000 - x3 1 1.0374 0.0290 35.7813 0.0000 - x6 1 -0.0112 0.0193 -0.5790 0.5626 - x5 1 0.0360 0.0193 1.8680 0.0618 - ------------------------------------------------------------------ - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8911 Somers' D 0.7821 - % Discordant 0.1089 Gamma 0.7821 - % Tied 0.0000 Tau-a 0.3911 - Pairs 99998319 c 0.8911 - --------------------------------------------------------------- - - - - - Stepwise Selection: Step 3 - - - x6 added - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------- - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------- - data y 20000 19999 19995 TRUE - ------------------------------------------------------------------------- - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 10041 1 9959 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ------------------------------------------------------------------ - Parameter DF Estimate Std. Error z value Pr(>|z|) - ------------------------------------------------------------------ - (Intercept) 1 -1.5228 0.0287 -53.1302 0.0000 - x1 1 1.0276 0.0212 48.4927 0.0000 - x2 1 0.9807 0.0209 46.9690 0.0000 - x3 1 1.0260 0.0213 48.2799 0.0000 - x5 1 0.0357 0.0192 1.8531 0.0639 - ------------------------------------------------------------------ - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8911 Somers' D 0.7821 - % Discordant 0.1089 Gamma 0.7821 - % Tied 0.0000 Tau-a 0.3911 - Pairs 99998319 c 0.8911 - --------------------------------------------------------------- - - - - - No more variables to be added/removed. - - - Final Model Output - ------------------ - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------- - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------- - data y 20000 19999 19995 TRUE - ------------------------------------------------------------------------- - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 10041 1 9959 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ------------------------------------------------------------------ - Parameter DF Estimate Std. Error z value Pr(>|z|) - ------------------------------------------------------------------ - (Intercept) 1 -1.5228 0.0287 -53.1302 0.0000 - x1 1 1.0276 0.0212 48.4927 0.0000 - x2 1 0.9807 0.0209 46.9690 0.0000 - x3 1 1.0260 0.0213 48.2799 0.0000 - x5 1 0.0357 0.0192 1.8531 0.0639 - ------------------------------------------------------------------ - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8911 Somers' D 0.7821 - % Discordant 0.1089 Gamma 0.7821 - % Tied 0.0000 Tau-a 0.3911 - Pairs 99998319 c 0.8911 - --------------------------------------------------------------- - - - Stepwise Selection Summary - ---------------------------------------------------------------------- - Added/ - Step Variable Removed AIC BIC C(p) - ---------------------------------------------------------------------- - 1 x1 addition 16642.374 16681.891 16632.3740 - 2 x2 addition 16640.883 16688.304 16628.8830 - 3 x3 removal 16639.219 16678.736 16629.2190 - ---------------------------------------------------------------------- - diff --git a/tests/testthat/_snaps/stepwise-p.md b/tests/testthat/_snaps/stepwise-p.md deleted file mode 100644 index ee1716fd..00000000 --- a/tests/testthat/_snaps/stepwise-p.md +++ /dev/null @@ -1,79 +0,0 @@ -# output from forward variable selection is as expected - - Code - blr_step_p_both(model) - Output - Stepwise Selection Method - --------------------------- - - Candidate Terms: - - 1. x1 - 2. x2 - 3. x3 - 4. x4 - 5. x5 - 6. x6 - - We are selecting variables based on p value... - - Variables Entered/Removed: - - - x6 added - - x5 added - - x6 added - - No more variables to be added/removed. - - - Final Model Output - ------------------ - - - Creating model overview. - - Creating response profile. - - Extracting maximum likelihood estimates. - - Estimating concordant and discordant pairs. - Model Overview - ------------------------------------------------------------------------- - Data Set Resp Var Obs. Df. Model Df. Residual Convergence - ------------------------------------------------------------------------- - data y 20000 19999 19995 TRUE - ------------------------------------------------------------------------- - - Response Summary - -------------------------------------------------------- - Outcome Frequency Outcome Frequency - -------------------------------------------------------- - 0 10041 1 9959 - -------------------------------------------------------- - - Maximum Likelihood Estimates - ------------------------------------------------------------------ - Parameter DF Estimate Std. Error z value Pr(>|z|) - ------------------------------------------------------------------ - (Intercept) 1 -1.5228 0.0287 -53.1302 0.0000 - x1 1 1.0276 0.0212 48.4927 0.0000 - x2 1 0.9807 0.0209 46.9690 0.0000 - x3 1 1.0260 0.0213 48.2799 0.0000 - x5 1 0.0357 0.0192 1.8531 0.0639 - ------------------------------------------------------------------ - - Association of Predicted Probabilities and Observed Responses - --------------------------------------------------------------- - % Concordant 0.8911 Somers' D 0.7821 - % Discordant 0.1089 Gamma 0.7821 - % Tied 0.0000 Tau-a 0.3911 - Pairs 99998319 c 0.8911 - --------------------------------------------------------------- - - - Stepwise Selection Summary - ---------------------------------------------------------------------- - Added/ - Step Variable Removed AIC BIC C(p) - ---------------------------------------------------------------------- - 1 x1 addition 16642.374 16681.891 16632.3740 - 2 x2 addition 16640.883 16688.304 16628.8830 - 3 x3 removal 16639.219 16678.736 16629.2190 - ---------------------------------------------------------------------- - diff --git a/tests/testthat/test-backward-aic-details.R b/tests/testthat/test-backward-aic-details.R deleted file mode 100644 index a48a6f7c..00000000 --- a/tests/testthat/test-backward-aic-details.R +++ /dev/null @@ -1,10 +0,0 @@ -test_that("output is as expected when details == TRUE", { - - model <- glm( - honcomp ~ female + read + science + math + prog + socst, - data = hsb2, family = binomial(link = "logit") - ) - - expect_snapshot(blr_step_aic_backward(model, details = TRUE)) - -}) diff --git a/tests/testthat/test-backward-p-details.R b/tests/testthat/test-backward-p-details.R deleted file mode 100644 index 7e548eed..00000000 --- a/tests/testthat/test-backward-p-details.R +++ /dev/null @@ -1,10 +0,0 @@ -test_that("output is as expected when details == TRUE", { - - model <- glm( - honcomp ~ female + read + science + math + prog + socst, - data = hsb2, family = binomial(link = "logit") - ) - - expect_snapshot(blr_step_p_backward(model, details = TRUE)) - -}) diff --git a/tests/testthat/test-backward-p.R b/tests/testthat/test-backward-p.R deleted file mode 100644 index acbd1cf1..00000000 --- a/tests/testthat/test-backward-p.R +++ /dev/null @@ -1,10 +0,0 @@ -test_that("output from backward variable p elimination is as expected", { - - model <- glm( - honcomp ~ female + read + science + math + prog + socst, - data = hsb2, family = binomial(link = "logit") - ) - - expect_snapshot(blr_step_p_backward(model)) - -}) diff --git a/tests/testthat/test-forward-aic-details.R b/tests/testthat/test-forward-aic-details.R deleted file mode 100644 index db4134f3..00000000 --- a/tests/testthat/test-forward-aic-details.R +++ /dev/null @@ -1,10 +0,0 @@ -test_that("output from forward variable selection is as expected", { - - model <- glm( - honcomp ~ female + read + science, data = hsb2, - family = binomial(link = "logit") - ) - - expect_snapshot(blr_step_aic_forward(model, details = TRUE)) - -}) diff --git a/tests/testthat/test-stepwise-p-details.R b/tests/testthat/test-stepwise-p-details.R deleted file mode 100644 index a2d0cefc..00000000 --- a/tests/testthat/test-stepwise-p-details.R +++ /dev/null @@ -1,6 +0,0 @@ -test_that("output from forward variable p selection is as expected", { - - model <- glm(y ~ ., data = stepwise, family = binomial(link = 'logit')) - expect_snapshot(blr_step_p_both(model, details = TRUE)) - -}) diff --git a/tests/testthat/test-stepwise-p.R b/tests/testthat/test-stepwise-p.R deleted file mode 100644 index 77ac6914..00000000 --- a/tests/testthat/test-stepwise-p.R +++ /dev/null @@ -1,7 +0,0 @@ -test_that("output from forward variable selection is as expected", { - - model <- glm(y ~ ., data = stepwise, family = binomial(link = 'logit')) - expect_snapshot(blr_step_p_both(model)) - -}) -