[R] rcspline.problem

From: Haleh Ghaem Maralani <a0066612_at_nus.edu.sg>
Date: Fri, 06 May 2011 12:24:42 +0800

   Dear Dr ;

   I am a PhD student at Epidemiology department of National University of    Singapore. I used R command (rcspline.plot) for plotting restricted cubic    spline – the model is based on Cox. I managed to get a plot without    adjustment for other covariates, but I have a problem regarding to    adjusting the confounders.

   I applied below command to generate the matrix for covariates.

   m=as.matrix(age,sex) or m1=matrix(age,sex) or m2=cbind(age,sex)

   But, when I input ..... adj=m, or adj=m1, or adj=m2...... in the model, R    gives below error:

   Error in pchisq(q, df, lower.tail, log.p) :

     Non-numeric argument to mathematical function

   In addition: Warning message:

   In coxph.fit(cbind(x, xx, adj), cbind(y, event), strata = NULL, :

   Loglik converged before variable 1,2,3,4 ; beta may be infinite.

   I would be grateful if you take my issue into your consideration and help me    on this case

   Sincerely Yours

   Haleh Ghaem

   PhD student, NUS



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 06 May 2011 - 08:05:08 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 May 2011 - 13:10:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive