Posts Tagged ‘plyr’
Although the graphic at the left might not seem a 100% appropriate, it gives a hint to what I am about to do. I want to calculate all possible linear regression models with one dependent and several independent variables. I do not want to address bias and fitting issues or the question if this makes […]
Filed under: R / R-Code | 11 Comments
Tags: permutation, plyr, regression
Today I will treat a problem I encounter every once in a while. Let’s suppose we have several dataframes or vectors of unequel length but with partly matching column names, just like the following ones: df1 <- data.frame(Intercept = .4, x1=.4, x2=.2, x3=.7) df2 <- data.frame(Intercept = .5, x2=.8 ) This for example may occur […]
Filed under: R / R-Code | 10 Comments
Tags: data frame, plyr