-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
263 fixed design split into smaller export function #271
263 fixed design split into smaller export function #271
Conversation
@@ -153,14 +151,14 @@ as_gt.fixed_design <- function(x, title = NULL, footnote = NULL, ...) { | |||
"fh" = { | |||
paste0( | |||
"Power for Fleming-Harrington test ", | |||
substr(x$design, 19, nchar(x$design)), | |||
substr(x$Design, 19, nchar(x$Design)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why would we use upper cases now? I thought we should use lower cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it out! The x
object is from gs_design/power_xxx() |> summary()
, so all the column name is capitalized. Sentence case is used for summary
output, and as_gt()
is just for formate transformation (R table -> gt table). In this way, even if users don't use as_gt
, they can use ... |> summary() |> gt()
to get a sentence case table without any column renaming.
R/fixed_design_lf.R
Outdated
|
||
#' Fixed design sample size | ||
#' | ||
#' Computes fixed design sample size for Lachin-Foulkes method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a user, I am confused what does LF method stands for.
A design needs to associate with a specific test. To me LF's paper is a general approach on piecewise enrollment and failure that can be applied to multiple tests.
If the function is related to log rank test with average hazard ration, do we really need this separate function? Or it is already covered by 'fixed_design_ahr'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lf
calls gsDesign functions. It is always hard to tell everything through a function name, so documentation (https://merck.github.io/gsDesign2/articles/usage-fixed-design.html) is important. If the documentation of fixed_design_xx
is sufficient, then users can always go to the referenced paper for more details.
I updated the documentation of |
Thanks! I am fine to merge this PR given the good work you already have. Let's discuss function name in a meeting. Need some help to understand the details |
Sure, let's merge the PR first but keep the issue open for Friday's discussion. |
No description provided.