On 07/08/2008 3:56 AM, Trev101 wrote:
Hey,
I am just starting to learn R now and I typed in this simple survival
program:
library(survival)
t <- c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
c <- c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
data <- Surv(t,c)
km <- sur
Oh wait it gives me another error saying that:
Loading required package: splines
I cant find the package called splines in the list is that an important
package?
--
View this message in context:
http://www.nabble.com/Trying-to-run-simple-survival-program-in-R-but-does-not-work-tp18865807p18866
Very Strange have no idea why this is happening :-( I am running a AMD Athlon
64 3500+ with 1 GB RAM and Running microsoft Windows XP service pack 2.
I only installed the main program of R being R-2.7.1-win32 and then I
installed tinn-R. I then opened R and tinn-R and then from the RGui I went
to
Hey, Thanx I did that and it works it gives me the output I require but it
still does not like that call option I guess its not that important since I
got the output I required :-D.
Thanx for all the help I really appreciate it :-D
--
View this message in context:
http://www.nabble.com/Trying-t
Trev101 wrote:
Hey,
I am just starting to learn R now and I typed in this simple survival
program:
library(survival)
t <- c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
c <- c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
data <- Surv(t,c)
km <- survfit(data)
su
survival and splines come as part of R: you do not need to install either.
On Thu, 7 Aug 2008, bartjoosen wrote:
Survival depends on splines, so you should install the splines library, and
then everything should be fine.
Bart
Trevor Hansen wrote:
Oh wait it gives me another error saying t
On Thu, 7 Aug 2008, Trev101 wrote:
Hey,
I am just starting to learn R now and I typed in this simple survival
program:
library(survival)
t <- c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
c <- c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
data <- Surv(t,c)
km <- survfit(data
Survival depends on splines, so you should install the splines library, and
then everything should be fine.
Bart
Trevor Hansen wrote:
>
> Oh wait it gives me another error saying that:
> Loading required package: splines
>
> I cant find the package called splines in the list is that an impor
When I run your code, I have no problem at all, could you please give us some
more info about what system you are running on, OS, packages loaded, .
Bart
Trev101 wrote:
>
> Hey,
>
> I am just starting to learn R now and I typed in this simple survival
> program:
>
>library(survival
Hey,
I am just starting to learn R now and I typed in this simple survival
program:
library(survival)
t <- c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
c <- c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
data <- Surv(t,c)
km <- survfit(data)
summary(km)
Call
10 matches
Mail list logo