Follow-up to PR 427 (return sample size from pw_info())#429
Follow-up to PR 427 (return sample size from pw_info())#429LittleBeannie merged 5 commits intoMerck:mainfrom
pw_info())#429Conversation
|
I also added the new NSE variables in |
There was a problem hiding this comment.
Thank you, @jdblischak ! Nice to learn the left join of data.table can be realized by merge.
I did a minor commit by ordering the column n and event together, since they are usually reported jointly.
@LittleBeannie A quick follow-up. I realized that |
Hi @jdblischak , there should NOT be a case where there will be values in |
I feel like we might still not be 100% on the same page. The default behavior of If all the records of Here is a quick demo to highlight the difference between inner and left joins: library("dplyr")
x <- data.frame(key = rep(1:3, times = 3), x = rnorm(9))
y <- data.frame(key = 1:3, y = letters[1:3])
# Inner and left joins are equivalent when all records in x have a match in y
identical(inner_join(x, y), left_join(x, y))
## [1] TRUE
# Inner and left joins differ when record(s) in x are missing from y
x <- rbind(data.frame(key = 4, x = rnorm(1)), x)
identical(inner_join(x, y), left_join(x, y))
## [1] FALSEThanks for the clear explanation. I double checked with |
This is a follow-up to #427:
twas the first column). I wasn't sure if this mattered, but just in case, I enforced the identical column orderpw_info(). Since the column returned ishrand notahr, I also removed "average" from its description. Please let me know if I should add it back. Also, if someone can provide brief descriptions of the columnsstratumandt, I could also add thesepw_info()to follow the naming convention (https://github.com/Merck/gsDesign2/pull/427/files#r1653206548)