Hello,
Many thanks for your contribution in developing such a great package!
I am facing an error when using the adjustedsurv() function, which says
"Error in app$vspace(new_style$margin-top
%||% 0) :
attempt to apply non-function".
I am wondering what could be the reason for this error, and what can be done to fix it? The detailed code and outputs are listed below.
Thank you for your generous help!
Code:
mod4_Cox1 <- coxph(Surv(D28_OUTCOME_DAYS,D28_DEATH)~STATUS2+AGE+SEX+SMOKE2+CHD+HT+DM+ND+LD+CPD+SCORE+BARICITINIB+WH_AV,data = temp2,x=T)
summary(mod4_Cox1)
adj4 <- adjustedCurves::adjustedsurv(data=temp2, variable="STATUS2", ev_time="D28_OUTCOME_DAYS", event="D28_DEATH", method="direct", outcome_model=mod4_Cox1, conf_int = T)
SessionInfo:
Call:
coxph(formula = Surv(D28_OUTCOME_DAYS, D28_DEATH) ~ STATUS2 +
AGE + SEX + SMOKE2 + CHD + HT + DM + ND + LD + CPD + SCORE +
BARICITINIB + WH_AV, data = temp2, x = T)
adj4 <- adjustedCurves::adjustedsurv(data=temp2,
variable="STATUS2",
ev_time="D28_OUTCOME_DAYS",
event="D28_DEATH",
method="direct",
outcome_model=mod4_Cox1,
conf_int = T)
Loading required namespace: riskRegression
Error in app$vspace(new_style$margin-top
%||% 0) :
attempt to apply non-function