@@ -3,9 +3,7 @@ blr_reg_comp <- function(formula, data, odd_conf_limit) {
33 model <- glm(formula = formula , data = data ,
44 family = binomial(link = " logit" ))
55
6- if (isRunning()) {
7- cat(paste(" -" , " Creating model overview." ), " \n " )
8- } else if (interactive()) {
6+ if (interactive()) {
97 cat(crayon :: green(clisymbols :: symbol $ tick ),
108 crayon :: bold(" Creating model overview." ), " \n " )
119 } else {
@@ -19,9 +17,7 @@ blr_reg_comp <- function(formula, data, odd_conf_limit) {
1917 resid_df <- residual_df(model )
2018 mod_df <- model_df(model )
2119
22- if (isRunning()) {
23- cat(paste(" -" , " Creating response profile." ), " \n " )
24- } else if (interactive()) {
20+ if (interactive()) {
2521 cat(crayon :: green(clisymbols :: symbol $ tick ),
2622 crayon :: bold(" Creating response profile." ), " \n " )
2723 } else {
@@ -30,9 +26,7 @@ blr_reg_comp <- function(formula, data, odd_conf_limit) {
3026
3127 resp_prof <- resp_profile(model )
3228
33- if (isRunning()) {
34- cat(paste(" -" , " Extracting maximum likelihood estimates." ), " \n " )
35- } else if (interactive()) {
29+ if (interactive()) {
3630 cat(crayon :: green(clisymbols :: symbol $ tick ),
3731 crayon :: bold(" Extracting maximum likelihood estimates." ), " \n " )
3832 } else {
@@ -48,9 +42,7 @@ blr_reg_comp <- function(formula, data, odd_conf_limit) {
4842
4943 if (odd_conf_limit ) {
5044
51- if (isRunning()) {
52- cat(paste(" -" , " Computing odds ratio estimates." ), " \n " )
53- } else if (interactive()) {
45+ if (interactive()) {
5446 cat(crayon :: green(clisymbols :: symbol $ tick ),
5547 crayon :: bold(" Computing odds ratio estimates." ), " \n " )
5648 } else {
@@ -63,9 +55,7 @@ blr_reg_comp <- function(formula, data, odd_conf_limit) {
6355
6456 }
6557
66- if (isRunning()) {
67- cat(paste(" -" , " Estimating concordant and discordant pairs." ), " \n " )
68- } else if (interactive()) {
58+ if (interactive()) {
6959 cat(crayon :: green(clisymbols :: symbol $ tick ),
7060 crayon :: bold(" Estimating concordant and discordant pairs." ), " \n\n " )
7161 } else {
0 commit comments