linear_regression.py $input1 $response_col $predictor_cols $out_file1 $out_file2 1>/dev/null rpy .. class:: infomark **TIP:** If your data is not TAB delimited, use *Edit Queries->Convert characters* ----- .. class:: infomark **What it does** This tool uses the 'lm' function from R statistical package to perform linear regression on the input data. It outputs two files, one containing the summary statistics of the performed regression, and the other containing diagnostic plots to check whether model assumptions are satisfied. *R Development Core Team (2009). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org.* ----- .. class:: warningmark **Note** - This tool currently treats all predictor and response variables as continuous numeric variables. Running the tool on categorical variables might result in incorrect results. - Rows containing non-numeric (or missing) data in any of the chosen columns will be skipped from the analysis. - The summary statistics in the output are described below: - sigma: the square root of the estimated variance of the random error (standard error of the residiuals) - R-squared: the fraction of variance explained by the model - Adjusted R-squared: the above R-squared statistic adjusted, penalizing for the number of the predictors (p) - p-value: p-value for the t-test of the null hypothesis that the corresponding slope is equal to zero against the two-sided alternative.