search for: newdat1

Displaying 3 results from an estimated 3 matches for "newdat1".

Did you mean: newdata
2003 Oct 29
2
importing SAS data
I am trying to import a permanent SAS data set using read.ssd in the foreign library. I get the following error: > list.files("C:/temp") [1] "newdat1.sas7bdat" "snpm1.sas7bdat" "test1.sas" > library(foreign) > newdat1 <- read.ssd("C:/temp","newdat1") SAS failed. SAS program at C:\DOCUME~1\paul\LOCALS~1\Temp\Rtmp21143\file30218.sas a log and other error products should be in the vicinity...
2011 Jul 15
1
Plotting survival curves from a Cox model with time dependent covariates
...ffect and then plot the predicted survival curve for one treatment (or both). library(survival) test <- list(time=runif(100,0,10),event=sample(0:1,100,replace=T),trmt=sample(0:1,100,replace=T)) model1 <- coxph(Surv(time, event) ~ tt(trmt), data=test, tt=function(x, t, ...) pspline(x + t)) newdat1 <- data.frame(trmt=1,time=list(0,1,2,3,4,5)) plot(survfit(model1,newdata=newdat1,individual=T), xlab = "Years", ylab="Survival") Where I think I am failing is with how to correctly specify what I want the survfit function to do. My understanding on reading the documentati...
2012 Aug 27
6
find and replace
I have 5 (A,B,C,D,E) columns in my dataframe. I want to replace all "x" with "y" and all "a" with "b" within these 5 columns. Can I do it in one step? Thanks [[alternative HTML version deleted]]