search for: alkpho

Displaying 2 results from an estimated 2 matches for "alkpho".

Did you mean: alkphos
2006 Sep 03
2
Running cox models
...ing a dataset from: http://faculty.washington.edu/~heagerty/Books/Biostatistics/chapter16.html (Primary Biliary Cirrhosis data link at top of the page), I'm using the following code: --------------- start of code library(survival) liver <- scan("liver2.txt",list(age=0,albumin=0,alkphos=0,ascites=0,bili=0, cholest=0,edema=0,edmadj=0,hepmeg=0,obstime=0,platelet=0,protime=0, sex=0,sgot=0,spiders=0,stage=0,status=0,treatmnt=0, triglyc=0,urinecu=0)) fit<-coxph(Surv(obstime,status)~bili+edmadj+albumin+protime+age,data=liver) summary(fit) ----------------- En...
2012 Jan 19
2
Reading in tab (and space) delimited data within a script XXXX
...d.table( textConnection(mystring), header=TRUE, sep=",", row.names="id", na.strings=" ") closeAllConnections() mydata Can anyone suggest a similar approach for reading in tab-delimited or single space delimited data? Example data: data3<- "OBSNO AGE SEX ALKPHOS LAB CAMMOL PHOSMMOL AGEGROUP 21 76 M 84 5 3.2 0.9 3 22 76 M 5 2.18 0.84 3 23 68 M 82 5 2.15 0.52 1 24 69 M 84 5 2.3 1.36 1 25 76 F 100 3 25.3 1.07 3 26 70 F 90 3 20 0.97 2 27 71 F 109 3 22.3 0.94 2 28 70 -99 65 3 24.3 1.42 2 29 74 F 61 3 25 0.87 2 30 74 F 62 3 23.3 0.94 2" Thanks! Dan [[...