Displaying 2 results from an estimated 2 matches for "covi".
Did you mean:
cov
2000 May 02
2
Variable names in model formula
...want to fit a Cox model for
>each of the covariate (univariately) and obtain the fitted probability of
>survival at a fixed time point t0 and covariate value Xi0. I tried to do
>this in a for loop where the index is the variable name as follows
>
>covnames <- names(...)
>for (covi in covnames) {
> survout <- coxph(Surv(time,status) ~ covi, data = dataname)
> print(summary(survfit(survout,newdata),t0))
>}
You could try
covnames <- names(...)
form <- Surv(time, status) ~ dummy
for(nam in covnames) {
form[[3]] <- as.name(nam)
survout <- coxph(form,...
2000 Apr 30
0
Help Need with aov()
Hi there,
I'm using R1.0.1 Windows 98.
This file contains some inputs and an aov function code. Can someone
check it for me? Somehow I got completely different answer when typing
them in R and in Splus.
Splus gives me this:
> summary( Turnip.aov )
Error: Blocks
Df Sum of Sq Mean Sq F Value Pr(F)
Residuals 3 163.7367 54.57891
Error: Plots %in% Blocks