Re: [R] se's and CI's for fitted lines in multivariate regression analysis

2012-10-20 Thread Sigrid
Hi again, Thank you so much for the script. Unfortunately, I feel like I might not have explained things clearly enough from the start. What I’m looking for is the st. errors or CI intervals for the estimate the parameter for slope and intercept for each level of each factor. From the summary

Re: [R] se's and CI's for fitted lines in multivariate regression analysis

2012-10-16 Thread Sigrid
Okay, I've now tried to the predict function and get the SE, although it seem to calculate SE for each observation from the line (I assume), while I want the CI-interval and SE for each line fitted line for the treatment. I do not really understand what parameter mean these SEs are calculated

[R] se's and CI's for fitted lines in multivariate regression analysis

2012-10-10 Thread Sigrid
. Also by running confint(model), I have the same problem. How can I get standard error per or the CI-interval for each fitted line? I’ve attached the coding underneath. Thank you, Sigrid data(OrchardSprays) model-lm(decrease~rowpos+colpos+treatment+treatment:colpos) summary(model) -- View

Re: [R] se's and CI's for fitted lines in multivariate regression analysis

2012-10-10 Thread Sigrid
Hi Bert, I just looked at An Introduction to R - and I do apologize if my questions are trivial. I see that they use predict as a function in lm, but I'm not sure how to incorporate it into a command. Thank you, S -- View this message in context:

[R] nesting scale_manual caracteristics in ggplot

2011-11-08 Thread Sigrid
= Intercept, slope = Slope, colour = treatment, linetype=treatment), data = lines) Thank you, Sigrid -- View this message in context: http://r.789695.n4.nabble.com/nesting-scale-manual-caracteristics-in-ggplot-tp4017171p4017171.html Sent from the R help mailing list archive at Nabble.com

Re: [R] nesting scale_manual caracteristics in ggplot

2011-11-08 Thread Sigrid
Hi Dennis, Thank you, it looks much better now the three characteristics are combined in the label. However, I would like to keep two different sets of labels on the side as I want to describe lines for each facet (high and low). Do you think this is possible, without breaking up the

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-26 Thread Sigrid
Thank you Brian. Sorry for being such a noob. I am not a programmer and just learning R by myself. This is was I typed, but ended up with a couple error messages. df -structure(list(year = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, + 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-18 Thread Sigrid
Hi I apologize for not providing reproducible codes more clearly, and I hope this will be more understandable. I have 14 lines (7 per facet that I would like to add). I will provide you with six of the lines from the data as that should enough data to work with, and also result in less

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-15 Thread Sigrid
Okay, seems like ddply is not the right method to add my model. That is okay, though. I already calculated the slopes and intercepts fore each for the treatments and country. How can I add those 14 lines? -- View this message in context:

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-13 Thread Sigrid
Great! Thank you, Brian. To answer your question about intercept and slopes, I got them from a covariance analysis that I had already conducted. It seems like I can not use the regressions command for the model that I used to get the intercepts and slopes. I guess 2 factors are the maximum. +

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-11 Thread Sigrid
Thank you, Dennis. This is my regenerated dput codes. They should be correct as I closed off R and re-ran them based on the dput output. structure(list(year = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-10 Thread Sigrid
Thank you, Ista, for your quick response and tip. I would love to make a reproducible example and was not aware of the dput codes as I am a new user. Is there anywhere I can read up on how to use dput? Sigrid -- View this message in context: http://r.789695.n4.nabble.com/grey-colored-lines

[R] grey colored lines and overwriting labels i qqplot2

2011-07-09 Thread Sigrid
I created this graph in ggplot and added ablines to the different facets by specifying with subset commands. As you might see, there are still a few issues. 1.) I would like to have the diamonds in a grey scale instead of colors. I accomplished this (see graph 2) until I overwrote the label

Re: [R] changing graphs in qqplot2

2011-07-09 Thread Sigrid
Great. Thank you for your suggestions. In case other people are interested too, this is what I got now. I was able to #added labels for x-axis and y-axis p + scale_y_continuous(number of votes) p + scale_x_continuous(number of votes) # specify breaks p + scale_x_continuous(breaks=1:4)

[R] changing graphs in qqplot2

2011-06-26 Thread Sigrid
differ (found for 'COUNTRY') Thank you for all help and creative solutions. Sigrid (I am re-posting as I've gotten more information on what I wanted to know under my last post, but my new problems are not reflected by the subject and I feel like some people would be missing out a chance of helping me

Re: [R] Side by side scatter plots with specified regression lines

2011-06-24 Thread Sigrid
, data = data, weights = weight, : variable lengths differ (found for 'COUNTRY') Thank you for all help and creative solutions. Sigrid -- View this message in context: http://r.789695.n4.nabble.com/Side-by-side-scatter-plots-with-specified-regression-lines-tp3592473p3623055.html Sent from the R

[R] Side by side scatter plots with specified regression lines

2011-06-12 Thread Sigrid
I am new and self taught in R, so please bear with me. I want to create two scatter plots side by side. The data set includes measurements from two different countries with 7 treatments over a timeline (x-axis). Problem 1 I want to have each plot to include the data from one of the countries