Individual longitudinal profiles of a given variable
It creates a list with individual longitudinal profiles of a given variable.
getProfiles(t, y, id, data)
t |
a character string giving the name of the variable with “time”. |
y |
a character string giving the names of the responses variables to keep in the resulting object. |
id |
a character string giving the name of the variable which identifies subjects. |
data |
a |
A list of data.frame
s, one for each subject identified by
id
in the original data
.
Arnošt Komárek arnost.komarek[AT]mff.cuni.cz
data(PBCseq, package="mixAK") ip <- getProfiles(t="day", y=c("age", "lbili", "platelet", "spiders"), id="id", data=PBCseq) print(ip[[2]]) print(ip[[34]]) XLIM <- c(0, 910) lcol1 <- rainbow_hcl(1, start=40, end=40) oldPar <- par(mfrow=c(1, 3), bty="n") plotProfiles(ip=ip, data=PBCseq, xlim=XLIM, var="lbili", tvar="day", xlab="Time (days)", col=lcol1, auto.layout=FALSE, main="Log(bilirubin)") plotProfiles(ip=ip, data=PBCseq, xlim=XLIM, var="platelet", tvar="day", xlab="Time (days)", col=lcol1, auto.layout=FALSE, main="Platelet count") plotProfiles(ip=ip, data=PBCseq, xlim=XLIM, var="spiders", tvar="day", xlab="Time (days)", col=lcol1, auto.layout=FALSE) par(oldPar)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.