Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

3 results for “from:Wells, Brian”

Defining reference category for a cph model summary inside of a "for" loop
Wells, Brian · Mar 28, 2008 · r-help

I have the following code. > f <- cph(formula = Surv(TimeToDeath, Dead == "Yes") ~1,data=single.dat, x=T, y=T, surv=T) > for(i in c('A', 'B', 'C', 'D', 'E', 'F')){ > f <-update(f,as.formula(paste('Surv(TimeToDeath...

Defining reference category for a cph model summary inside of a "for" loop
Wells, Brian · Mar 29, 2008 · r-help

Dr. Harrell, Thanks for you help. I tried: >print(summary(f,parse(text=paste(i,'="1st Quartile"', sep='')))) Same result. No error, the reference category simply doesn't change. Brian -----Original Message----- From: Frank E Harrell Jr [mailto:f.harrell...

Defining reference category for a cph model summary inside of a "for" loop
Wells, Brian · Mar 31, 2008 · r-help

Frank, Thanks again, I didn't realize that continuous variables could be manipulated that way inside of the summary function. I realize that my code was kind of confusing. The variables "A"..."F" are all categorical variables. They each have...

Can't find what you're looking for? Try searching with Google .