Entering edit mode
11.8 years ago
moranr
▴
290
Hi,
I have done survival analysis on a gene, using the coxph call and saved it in a variable a
. I know i can do summary(a) and get a return with the coef, exp(coef), se(coef) and power- p-value. I want to take JUST the p-value out of a to put into a a matrix.
So essentially is there a way of accessing just the p-value form a coxph object , e.g. coefVal <- a$coef gives me the coef value.. ?
Thanks, R
I was banging my head for half an hour and this saved my day :)
Thanks :)
Thank you, It was so frustrating as it should be very simple, I am not experienced in R and sometimes the simplest things can leave me baffled. Thank you this really helps me learn.
A very useful function to help sort out complex data structures is the str() function applied to the object in question.
Thanks very much , Ill read about this.