Displaying 4 results from an estimated 4 matches for "wexp".
Did you mean:
exp
2010 Oct 07
0
Categorical variables and Plotting a Cox model with interaction terms
...ion (i.e., 1, 2, 3).
Question 1: my site variable is technically a categorical (i.e., not
ranked), random factor but how do I (or can I?)define this?
Fox shows this method for plotting out seperate curves for a single factor:
> mod.allison <- coxph(Surv(week, arrest) ~ fin + age + race + wexp + mar +
> paro + prio,
+ data=Rossi)
> attach(Rossi)
> Rossi.fin <- data.frame(fin=c(0,1), age=rep(mean(age),2),
> race=rep(mean(race),2),
+ wexp=rep(mean(wexp),2), mar=rep(mean(mar),2), paro=rep(mean(paro),2),
+ prio=rep(mean(prio),2))
> detach()
> plot(survfit(mod.allison, ne...
2003 Jul 17
3
confused about histograms
...h integer codes from 0--3. I'd like a
histogram with a single bar for 0, 1, 2 and 3. I'd like each of the 4
bars centered over a label.
hist(mydata, breaks=4, main="Simulation")
gives me three bars. The best I've been able to do is do something
like
print(hist((wexp), breaks=25, main="Simulation"))
This gives me something close to what I want, but seems like a silly
way to do it. I'm about to give up and have someone do it in Excel
(which peeves me to no end).
To further complicate matters, one data set has no items in the zero
cell. I'd...
2010 Jul 01
1
Modelling survival with time-dependent covariates
...rvival Data? available here:
http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-cox-regression.pdf
I am particularly interested in modelling survival with time-dependent covariates (Section 4).
The data look like this:
> Rossi.2[1:50,]
start
stop arrest.time week arrest fin age race wexp mar paro prio educ employed
0 1 0 20 1 0 27 1 0 0 1 3 3 0
1 2 0 20 1 0 27 1 0 0 1 3 3 0
...
18 19 0 20 1 0 27 1 0 0 1 3 3 0
19 20 1 20 1 0 27 1 0 0 1 3 3 0
0 1 0 17 1 0 18 1 0 0 1 8 4 0
1 2 0 17 1 0 18 1 0 0 1 8 4 0
...
15 16 0 17 1 0 18 1 0 0 1 8 4 0
16 17 1 17 1 0 18 1 0 0 1 8 4 0
0 1 0 25 1 0 19...
2011 Dec 10
2
p-value for hazard ratio in Cox proportional hazards regression?
Hi,
I'm new to R and using it for Cox survival analysis. Thanks to this great forum I learned how to compute the HR with its confidence interval.
My question would be: Is there any way to get the p-value for a hazard ratio in addition to the confidence interval?
Thanks,
Thierry
--
Thierry Panje Visiting Student Researcher
Department of Psychology Stanford