Skip to content

Instantly share code, notes, and snippets.

@erikcs
Created November 20, 2021 18:56
Show Gist options
  • Save erikcs/76b20bc7b90b1a1017bed48cafb267f4 to your computer and use it in GitHub Desktop.
Save erikcs/76b20bc7b90b1a1017bed48cafb267f4 to your computer and use it in GitHub Desktop.
d163bf7.txt
xtabs(val ~ dgp + estimator + metric + target, DF.table.long, subset = n == 2000)
, , metric = CLF, target = RMST
estimator
dgp VT SRC1 SRC2 IPCW CSF
type1 0.26015800 0.23058600 0.25583400 0.21411400 0.19654800
type2 0.26030400 0.21983600 0.24268800 0.21657200 0.14402200
type3 0.19990800 0.17275800 0.20015600 0.08673400 0.08790600
type4 0.19212837 0.13838581 0.15726132 0.03206281 0.02763727
, , metric = MSE, target = RMST
estimator
dgp VT SRC1 SRC2 IPCW CSF
type1 1.20396359 0.65744150 0.96573601 0.50894121 0.21856235
type2 4.24723605 1.63480028 2.77586404 1.48830540 0.91194995
type3 66.94291850 40.85558584 50.89682144 14.71410915 12.14534208
type4 9.30345364 4.12037401 6.16525518 2.09131940 2.02723843
, , metric = MSE.excess, target = RMST
estimator
dgp VT SRC1 SRC2 IPCW CSF
type1 6.32612194 3.45229075 5.08311795 2.51312072 1.01891484
type2 5.39040560 2.00341355 3.49352323 1.73420012 1.01079581
type3 6.44794468 3.88798421 4.88389930 1.29152062 1.04175101
type4 6.00690942 2.57985181 3.91766876 1.20611482 1.16983422
, , metric = CLF, target = survival.probability
estimator
dgp VT SRC1 SRC2 IPCW CSF
type1 0.25460400 0.22841600 0.25665400 0.21236600 0.19581600
type2 0.27954400 0.24043400 0.26715400 0.25291200 0.18499400
type3 0.21661000 0.19001000 0.21627200 0.09845000 0.09464600
type4 0.19894318 0.14637619 0.15455014 0.05586346 0.04006620
, , metric = MSE, target = survival.probability
estimator
dgp VT SRC1 SRC2 IPCW CSF
type1 1.47829990 0.52347192 1.01444541 0.47991128 0.38488287
type2 1.67814627 0.57937925 1.11586406 0.56006381 0.40685035
type3 1.56162148 0.97449019 1.21089992 0.41256428 0.36784893
type4 1.59320565 0.67660996 1.06671269 0.44307234 0.40309661
, , metric = MSE.excess, target = survival.probability
estimator
dgp VT SRC1 SRC2 IPCW CSF
type1 4.44046021 1.54178641 3.02933991 1.31450081 1.05025843
type2 4.78182986 1.61403215 3.17420081 1.43923707 1.02234175
type3 4.96642568 3.07746143 3.84122782 1.17084376 1.04127243
type4 4.98988634 2.06604366 3.30192933 1.25999822 1.13654855
> xtabs(coverage ~ dgp + Xi + target, tab)
, , target = RMST
Xi
dgp 0.2 0.4 0.6 0.8
type1 0.92 0.86 0.94 0.96
type2 0.91 0.94 0.95 0.92
type3 0.95 0.95 0.93 0.91
type4 0.80 0.93 0.95 0.94
, , target = survival.probability
Xi
dgp 0.2 0.4 0.6 0.8
type1 0.94 0.88 0.93 0.97
type2 0.94 0.96 0.96 0.90
type3 0.93 0.95 0.93 0.95
type4 0.84 0.94 0.95 0.95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment