Please see the FAQ: What's a reproducible example (`reprex`) and how do I create one? Using a reprex, complete with representative data will attract quicker and more answers. Here, without the analysis
object, it's necessary to turn to the example in the help(coxph)
page.
Unfortunately, there are many functions by that name, so I'll assume the one in the survival
package.
This version returns a proportional hazards regression model object
to represent a fitted proportional hazards model
If you give your model as an argument to str()
you will indeed see that it contains no slot for p-value
, which makes sense, since it is used to perform tests, not to report them.