-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
addign x y axis limit, good to go #187
Conversation
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
I have read the CLA Document and I hereby sign the CLA |
Code Coverage Summary
Diff against main
Results for commit: 249260e Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 11 suites 17s ⏱️ Results for commit 249260e. ♻️ This comment has been updated with latest results. |
library(dplyr)
library(tern.mmrm)
adsl <- random.cdisc.data::cadsl
adqs <- random.cdisc.data::cadqs
adqs_f <- adqs %>%
dplyr::filter(PARAMCD == "FKSI-FWB" & !AVISIT %in% c("BASELINE")) %>%
droplevels() %>%
dplyr::mutate(ARM = factor(ARM, levels = c("B: Placebo", "A: Drug X", "C: Combination"))) %>%
dplyr::mutate(AVISITN = rank(AVISITN) %>% as.factor() %>% as.numeric() %>% as.factor())
mmrm_results <- fit_mmrm(
vars = list(
response = "AVAL",
covariates = c("STRATA2"),
id = "USUBJID",
arm = "ARM",
visit = "AVISIT"
),
data = adqs_f
)
plot <- g_mmrm_lsmeans(
mmrm_results,
select = "estimates",
xlab = "Visit"
#, ylimits = c(30, 90)
)
plot plot2 <- g_mmrm_lsmeans(
mmrm_results,
select = "estimates",
xlab = "Visit", ylimits = c(30, 90), xlimits = factor(c("WEEK 1 DAY 8", "WEEK 4 DAY 29"), levels = c("SCREENING", "WEEK 1 DAY 8", "WEEK 2 DAY 15", "WEEK 3 DAY 22", "WEEK 4 DAY 29", "WEEK 5 DAY 36"))
)
plot2 |
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.
Lgtm!
close #183
replace #184