Displaying 1 result from an estimated 1 matches for "subwrap1".
Did you mean:
subwrap2
2007 Nov 09
2
wrapper for coxph with a subset argument
...egarding my question on coxph and model formula, the answers worked
perfectly.
My new question involves the following.
I want to run several coxph models (package survival) with the same
dataset, but different subsets of that dataset.
I have found a way to do this, described below in functions subwrap1 and
subwrap2. These do not use the coxph "subset" argument, however, as you
will see.
My three main questions are :
1) When writing a wrapper like this, should I be using the subset
argument in coxph(), or alternatively, doing what I am doing in subwrap1
and subwrap2 below? Is the...