Skip to content
Prev 206727 / 398503 Next

add spline to longitudinal data - preferably similar to SAS's 'I=SM50S' routine

On Mon, Jan 18, 2010 at 3:25 PM, Eric Fail <e at it.dk> wrote:
Hi,

How about something like:

# your data
tolerance.pp <-
read.table("http://www.ats.ucla.edu/stat/R/examples/alda/tolerance1_pp.txt",
sep=",", header=T)

# almost works...
xyplot(tolerance ~ age, groups = id, data=tolerance.pp, type = c('l','smooth'))

see ?panel.loess for more ideas

Cheers,
Dylan