Skip to content

Commit 4c951f9

Browse files
author
NightlordTW
committed
Imporve output
1 parent 3064015 commit 4c951f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/helper.r

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ print.simss <- function(x, ...) {
1818
upower <- round(x$response[["power_UCI"]], digits = 3)
1919
sst <- x$response[["n_total"]]
2020

21-
message(cat(paste0("Given a ",100*tpower,"% target power with 100(1-2*",alpha, ")% confidence level.")))
21+
message(cat("### Sample Size Calculation Results ###"))
22+
message(cat(paste0("For a study targeting ",100*tpower,"% power with a ",100*alpha, "% type-I error.")))
23+
message(cat("-------------------------------------------------------------"))
2224
message(cat(paste0("The total required sample size to achieve ",100*power,"% power is ",sst," sample units.\n")))
2325
print(x$response[,-1], row.names = FALSE)
2426
}

0 commit comments

Comments
 (0)