# NOT RUN {
data(heights)
## fit sitar model for height
m1 <- sitar(x=age, y=height, id=id, data=heights, df=5)
## update it for log(height)
m2 <- update(m1, y=sqrt(height))
## compare variance explained in the two models
varexp(m1, m2)
## compare BIC adjusting for sqrt transform
## the pattern matches names starting with "m" followed by a digit
BICadj(pattern="^m[0-9]")
## find what power height is raised to
getL(quote(sqrt(sqrt(height))))
# }
Run the code above in your browser using DataLab