checkWCE(drugdata, id = "Id", event = "Event", start = "Start",
stop = "Stop", expos = "dose")
wce <- WCE(drugdata, "Cox", 1, 90, constrained = "R", id = "Id",
event = "Event", start = "Start", stop = "Stop", expos = "dose",
covariates = c("age", "sex"))
coef(wce)
Run the code above in your browser using DataLab