[R] Variance explained in mixed models

2007-08-31 Thread Simon Pickett
is impossible right? Any better ideas? Thanks in advance, Simon. Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel 01326371852 http://www.uec.ac.uk/biology/research/phd-students/simon_pickett.shtml

[R] percentage explained by fixed effects in random model

2007-08-30 Thread Simon Pickett
Hi, I realise this has come up before in various reincarnations but I couldnt find the answer... I wish to quote the percentage variance explained by each of three components in my mixed model. If I didnt have a random effect I would just use r squared. I can work out the percentage explained

[R] graph dimensions default

2007-08-14 Thread Simon Pickett
with lots of graphs all over the place until I get the one I want! Thanks in advance, Simon Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel 01326371852 http://www.uec.ac.uk/biology/research/phd-students/simon_pickett.shtml

Re: [R] graph dimensions default

2007-08-14 Thread Simon Pickett
Yes, Thankyou, that does the trick nicely. I thought that kind of thing could be specified using par() but I guess not. Thanks again. On Tue, 14 Aug 2007, Simon Pickett wrote: Hi, I would like to (if possible) set the default width and height for graphs at the start of each session

[R] how to be clever with princomp?

2007-04-27 Thread Simon Pickett
for all your help, very much appreciated, Simon. Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel 01326371852 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

[R] general question about plotting multiple regression results

2007-04-19 Thread Simon Pickett
in it or when one of the independent variables is only significant when the other independent variables are in the equation, it gives me strange lines. Please can someone show me the light? Thanks in advance, Simon. Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus

[R] legend with density and fill

2007-03-17 Thread Simon Pickett
,male,female), col=black,cex=1.5, fill=c(white,dark grey,0,0),density=c(NA,NA,0,100),angle=45) any suggestions much appreciated, Thanks, Simon. Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel 01326371852

[R] link function

2007-03-08 Thread Simon Pickett
appreciated. Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel 01326371852 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] str() to extract components

2007-02-27 Thread Simon Pickett
[1:2] 0.00702 0.00702 .. .. ..$ b$size : num [1:2] 0.0343 0.0343 .. .. ..$ b$pcfat: num [1:2] 0.0451 0.0451 ..@ varFac: list() ..@ stdErr: num(0) how do I get inside the first table to get the value 1.07 for instance? Any help much appreciated. Simon Pickett PhD student Centre

[R] arrows and points for error bars

2006-10-20 Thread Simon Pickett
solutions to this problem, or maybe even a different way of making error plots? Sorry if this seems a bit pedantic, but it would be great if I could resolve this problem and so enable me to use R for publication standard graphs... Thanks everyone :-) Simon Pickett PhD student Centre For Ecology

Re: [R] arrows and points for error bars

2006-10-20 Thread Simon Pickett
of problems with R graphics where the bug is in the viewer software or the including application (Word being notorious for mis-rendering WMF files). On Fri, 20 Oct 2006, Peter Dalgaard wrote: Simon Pickett [EMAIL PROTECTED] writes: Hello everyone, I have successfully made an error bar graph

[R] help: advice on the structuring of ReML models for analysing growth curves

2006-09-05 Thread Simon Pickett
appreciated, Simon Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel 01326371852 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] help: trouble using lines()

2006-08-24 Thread Simon Pickett
Pickett wrote: Date sent:Thu, 24 Aug 2006 13:43:18 +0100 (BST) From: Simon Pickett [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Subject: [R] help: trouble using lines() Hi R experts, I have been using ReML as follows... model-lmer

Re: [R] REML with random slopes and random intercepts giving strange results

2006-08-16 Thread Simon Pickett
, Simon I don't this is because you are using REML. The BLUPs from a mixed model experience some shrinkage whereas the OLS estimates would not. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Pickett Sent: Tuesday, August 15, 2006 11:34 AM

Re: [R] [SPAM] - RE: REML with random slopes and random intercepts giving strange results - Bayesian Filter detected spam

2006-08-16 Thread Simon Pickett
-16 *** newwt -3.2382e-02 4.5962e-04 4686 -70.455 2.2e-16 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Correlation of Fixed Effects: (Intr) newwt -0.954 Can you provide the summary(m2) results? -Original Message- From: Simon Pickett [mailto:[EMAIL

[R] REML with random slopes and random intercepts giving strange results

2006-08-15 Thread Simon Pickett
at graphs. Indeed, why do the results differ at all? Excuse my naivety if this is a silly question. Thanks to everyone for replying to my previous questions, very much appreciated. Simon Pickett PhD student Centre For Ecology and Conservation Tremough Campus University of Exeter in Cornwall TR109EZ Tel

[R] help: convert lmer.coef to matrix

2006-08-11 Thread Simon Pickett
Hi all, I am trying to coerce the coeficients from a REML using lmer() to a matrix of numbers which I can then write into excel. I have looked in the archive and read around in the (Matrix) documentation but havent found anything of use. Any suggestions much appreciated, Thankyou, S. Simon

[R] help:coerce lmer.coef to matrix

2006-08-11 Thread Simon Pickett
this which results in an object of class lmer.coef, 3 columns by 700 rows. as.data.frame() wont work on this and I cant seem to specify that I want three columns when I tried -matrix(lmer.coef,ncol=length(lmer.coef)) Thanks very much, S Simon Pickett PhD student Centre For Ecology

[R] help with structuring random factors using lmer()

2006-08-10 Thread Simon Pickett
x1 and x2 (a coefficient score for every individual). m1-lmer(weight~time+timesq+(1|id)+(timesq-1|id)+(time-1|id), data=dataset) coef(m1) gives me nearly what I want except there isnt an individual coefficient score for each individual for x2. Any suggestions very much appreciated. Simon Pickett