stremr icon indicating copy to clipboard operation
stremr copied to clipboard

get_MSMRDs with a single t0

Open romainkp opened this issue 8 years ago • 0 comments

RDtables.t0.1.2year <- get_MSM_RDs(MSM.IPAW, c(3,7), getSEs = TRUE) ## BUG
RDtables.t0.1.year <- get_MSM_RDs(MSM.IPAW, c(3), getSEs = TRUE) ## BUG

Error in se.RDscale.Sdt.K[d1.idx, d2.idx] <- getSE.RD.d1.minus.d2(nID = nID, : replacement has length zero

Note that when there is only a single t0 specified in the argument (value 3), there is an error while the routine runs without a problem with 2+ t0's.

romainkp avatar Jun 20 '16 20:06 romainkp