R-beta: survival4 in R-0.60.1
gb at stat.umu.se
Tue Dec 16 10:20:36 CET 1997
I use survival4_1.0-2. Now, I tried the same experiment on my
Solaris2.4 system, with exactly the same R-survival4 setup, and
Autoloading required package: splines
> coxph(Surv(c(1,2,3,4), c(1,1,1,1)) ~ c(1,0,1,0))
ld.so.1: /export/home1/local/R-0.60.1/bin/R.binary: fatal: relocation
error: symbol not found: S_alloc: referenced in
which, besides ???, leads me to a question about S_alloc:
I haven't found any documentation about the proper way to
allocate/free memory in user-supplied C functions. I have
used the standard C routines malloc and free. It works, but my
functions are very slow when run under R, compared to when called
from a standalone main program. Any suggestions?
Goran Brostrom writes: >
> > Hi there,
> > Here is a record of an R session:
> >> library(survival4)
> > Autoloading required package: splines
> >> coxph(Surv(c(1,2,3,4), c(1,1,1,1)) ~ c(1,0,1,0))
> > Error in .C("coxfit2", iter = as.integer(iter.max), as.integer(n),
> > as.integer(nvar), : C/Fortran function not in load table
> > Why is "coxfit2" not in the load table? How do I fix it?
> > System is Linux.
> Hmm. I have
> hornik at pc25:~$ uname -a
> Linux pc25 2.0.30 #8 Thu Aug 28 01:02:50 CEST 1997 i586 unknown
> and get
> R> library(survival4)
> Autoloading required package: splines
> R> coxph(Surv(c(1,2,3,4), c(1,1,1,1)) ~ c(1,0,1,0))
> coxph(formula = Surv(c(1, 2, 3, 4), c(1, 1, 1, 1)) ~ c(1, 0,
> 1, 0))
> coef exp(coef) se(coef) z p
> c(1, 0, 1, 0) 0.94 2.56 1.24 0.758 0.45
> Likelihood ratio test=0.62 on 1 df, p=0.432 n= 4
> with 0.60.1 and a few patches, so perhaps you should wait for 0.60.2 (or
> 0.61?) to be out shortly ...
> PS. Btw, which version of survival4 is it?
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help