[R] Some seemingly odd behavior of survfit in library survival

2020-03-16 Thread John Kolassa
I ran across an issue that looks like variable scoping in survfit is not acting as I would expect. Here's a minimal example: new<-as.data.frame(list(t=1:4,d=rep(1,4),s=c(1,0,0,1))) library(survival) mine<-function(ff,df){ fit<-coxph(ff,data=df) out<-survfit(fit,df) } mine(as.form

[R] Function aovp in library lmPerm

2013-09-10 Thread John Kolassa
Dear Colleagues, I'm attempting to use the function aovp in library lmPerm, and am getting strange results. The package maintainer appears to be deceased, and I'm wondering if anyone else has experience with this package. I'm attempting a permutation test for a two-way analysis of vari

[R] Reassign functions called by other functions in package graphics

2012-12-11 Thread John Kolassa
I am trying to get a function written in R that calls a cascade of functions from the graphics package, and I want to eventually call replacements to functions in the graphics package instead of the originals. Specifically, I have a function that calls qqnorm in stats, which calls qqnorm.defaul

[R] Substituting a user-defined function for a standard function in graphics

2009-07-15 Thread John Kolassa
ensions, but wasn't able to solve this problem. Any pointers would be greatly appreciated. Thanks, John Kolassa __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr