Dear R users,
I am calculating several cox proportional hazard models after each other (I
know this is unusual, but I am just exploring the data). For the purpose of
multiple testing correction I need to construct an array of these p-values.
However since the output is not an array in
This is how you go about doing this.
summary(results)$coefficients[1,5]
You will have to check this for you code. But the idea is that
summary(results) is a list (?) and one of its components is called
coefficients, which is a matrix. So the problem is just to extract
one element of this matrix.