[R] question regarding variance function in gls

2010-03-15 Thread Yu, Xuesong
Dear R-help members, I have a question regarding how to use varComb function to specify a variance function for the "weights" in the gls. I need to fit a linear model with heteroscedasticity. The variance function is exp(c0+nu0*W +nu1*W^2) where W is a covariate. Initially I want to use varFu

[R] varComb in gls/lme

2010-03-08 Thread Yu, Xuesong
Dear R-help members, I have a question regarding how to use varComb function to specify a variance function for the "weights" in the gls. I need to fit a linear model with heteroscedasticity. The variance function is exp(c0+nu0*W +nu1*W^2) where W is a covariate. Initially I want to use va

[R] 2 different colors for 2 groups of lines using xyplot

2009-02-11 Thread Yu, Xuesong
Hi All, I am trying to use xyplot to plot several lines in one panel with red color for a group of lines, say 3 lines and blue color for another group of lines, say 4. I know this can be easily done using regular plot function. But i could not figure out how to do this in xyplot. Any hel