getProfiles {mixAK} | R Documentation |
Individual longitudinal profiles of a given variable
Description
It creates a list with individual longitudinal profiles of a given variable.
Usage
getProfiles(t, y, id, data)
Arguments
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 |
Value
A list of data.frame
s, one for each subject identified by
id
in the original data
.
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
See Also
Examples
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)
[Package mixAK version 5.7 Index]