Skip to content

Commit 1a77703

Browse files
added comments to Cox
1 parent ad2bdb1 commit 1a77703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

selectiveInference/R/funs.fixedCox.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ s2=sign(bhat)
3232
aaa=coxph(Surv(y,status)~x[,m],init=bhat,iter.max=0) # this gives the Cox model at exactly bhat
3333
# so when we compute gradient and score
3434
# we are evaluating at the LASSO solution
35+
# naming of variables could be improved...
3536
res=residuals(aaa,type="score")
3637
if(!is.matrix(res)) res=matrix(res,ncol=1)
3738
scor=colSums(res)

0 commit comments

Comments
 (0)