[R-sig-ME] varFixed function query in lme
bates at stat.wisc.edu
Mon Oct 13 17:17:54 CEST 2014
It is best to send inquiries like this to the
R-SIG-Mixed-Models at R-project.org mailing list, which I am cc:ing on this
reply. I am no longer the maintainer of the nlme package - I was pushed
aside by R Core many years ago and I really don't know what changes have
been made since they took over.
On Mon, Oct 13, 2014 at 8:46 AM, David Cox <dac64 at cam.ac.uk> wrote:
> Dear Professor Bates,
> I'm a neuroscience PhD student at Cambridge University. I saw that you
> maintain the 'varFixed' function for the 'weights' option in the nlme
> library. I have been reading the help manual but I'm a little stuck on a
> problem and wondered if you might have any quick suggestions.
> I'm using lme to model the peptide sequences of a set of proteins for
> cancer patients and healthy individuals. I want to use the weights function
> so that the peptide intensities are inversely weighted with the variance.
> The higher the variance, the lower the weighting etc. As the peptide
> intensities of cancer patients and healthy individuals will be different, I
> want to apply this weighting separately for each group.
> At the moment I've tried with a model like this for the 1st protein:
> Peptide Intensities ~ Covariates + Peptide Sequences + Group, random =
> Sample Id, data = data, weights = ~ Group
> Group denotes whether each intensity is a cancer patient/healthy person.
> Sample id is the id of each cancer/healthy sample.
> This doesn't work though. I get an error saying: "Error in
> Math.factor(attr(object, "covariate")) : abs not meaningful for factors."
> Many Thanks
> David Cox
[[alternative HTML version deleted]]
More information about the R-sig-mixed-models