[R] coxph

2008-11-05 Thread Feldman, Ruben
Hello, I ran the coxph model and everything worked fine. When I extract the output from the basehaz(y) function and was wondering if that baseline is cumulative or not. I then do: F(t,t+1)=1-exp(h_0(t+1) exp(coeff(1)*covariate(1)+...)) Does this give me the probability of death from t to t+1 (in

[R] Plotting 2D Logistic regression

2008-10-17 Thread Feldman, Ruben
Hi, My data has time series for different variables and I want to predict "ctw" with the value of each other variable at that point in the series. I have run a logistic regression: logreg <- glm(ctw ~ age + OFICO + ... + CCombLTV, data=mydata, family=binomial("logit")) And I am trying to get a plo

[R] Package

2008-10-17 Thread Feldman, Ruben
Hi, I was trying to plot the logistic regression from a regression "logreg" I just ran. I downloaded the "car" package from the R website and went to Packages -> install package from local zip file I checked in my library file and the package is there. I restarted R. I then ran the command: reg.li