search for: myfstatus

Displaying 1 result from an estimated 1 matches for "myfstatus".

2010 Mar 05
1
How to parse the arguments from a function call and evaluate them in a dataframe?
...us, data) { # step 1: obtain terms in `formula' from dataframe `data' # step 2: obtain ftime from `data' # step 3: obtain fstatus from `data' # step 4: do model estimation # step 5: return results } The user would call this function as: myfn(formula=myform, ftime=myftime, fstatus=myfstatus, data=mydata) Where `myform' is a formula object; and the terms in `myform', and the variables `myftime' and `myfstatus' should be obtained from the dataframe `mydata'. I am getting tripped up in trying to figure out how to do the seemingly simple steps of 1, 2, and 3. I lo...