Displaying 2 results from an estimated 2 matches for "moveunit".
Did you mean:
moveunits
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
...ata(prostate)
# Variables in prostate had units in ( ) inside variable labels. Move
# these units of measurements to separate units attributes
# wt is an exception. It has ( ) in its label but this does not denote units
# Also make hg have a legal R plotmath expression
prostate<-upData(prostate, moveUnits=TRUE,units=c(wt="",
hg="g/100*ml"),labels=c(wt="Weight Index = wt(kg)-ht(cm)+200"))
attach(prostate)
stage<- factor(stage, 3:4, c("Stage 3","Stage 4"))
s6<-summary(stage~rx+age+wt+pf+hx+sbp+dbp+ekg+hg+sz+sg+ap+bm,method="reverse",...
2008 Mar 02
0
new to latex to pdf
...ing my own simple latex code and
converting it to pdf using pdftex in miktex).
Thanks,
Mike Babyak
Department of Psychiatry and Behavioral Science
Duke University Medical Center
**************************
Here's the code:
library(Hmisc)
library(survival)
getHdata(pbc)
pbc<-upData(pbc, moveUnits=TRUE,
labels=c(stage='Histologic Stage\nLudwig Criteria'))
kmsurv <- function(S, times) {
f <- survfit.km(factor(rep(1,nrow(S))), S)
tt <- c(0, f$time)
ss <- c(1, f$surv) # add first point to survival curve
approx(tt, ss, xout=times, method='constant', f=0)$y
}
descr...