Re: [R] Varying statistical significance in estimates of linear model

2013-08-09 Thread Stathis Kamperis
For archiving reasons: 1. Practical Regression and Anova using R by Faraway 2. Possible reason: multi-collinearity in predictor variables. Thanks everybody! On Thu, Aug 8, 2013 at 1:43 PM, Stathis Kamperis ekamp...@gmail.com wrote: Hi everyone, I have a response variable 'y' and several

[R] Varying statistical significance in estimates of linear model

2013-08-08 Thread Stathis Kamperis
a look at them. Best regards, Stathis Kamperis __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

[R] Reshape2, melt, order of categorical variable and ggplot2

2012-10-08 Thread Stathis Kamperis
Hello everyone, I have the following data frame: df V1 V2 V3 1 bench1_10 16675 16678 2 bench1_10 16585 16672 3 bench1_100 183924 185563 4 bench1_100 169310 184806 5 bench1_300 514430 516834 6 bench1_300 510743 514062 7 bench1_500 880146 877882 8

Re: [R] Reshape2, melt, order of categorical variable and ggplot2

2012-10-08 Thread Stathis Kamperis
on you data: df$V1 - factor(df$V1, levels = unique(df$V1)) Sent from my iPad On Oct 7, 2012, at 16:40, Stathis Kamperis ekamp...@gmail.com wrote: Hello everyone, I have the following data frame: df V1 V2 V3 1 bench1_10 16675 16678 2 bench1_10 16585 16672 3

[R] How to replace a column in a data frame with another one with a different size

2012-07-08 Thread Stathis Kamperis
Hello everyone, I have a dataframe with 1 column and I'd like to replace that column with a moving average. Example: library('zoo') mydat - seq_len(10) mydat [1] 1 2 3 4 5 6 7 8 9 10 df - data.frame(V1 = mydat) df V1 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10