What Will Be The Output Of The Following R Codep Pre Langrsplus #535
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > set.seed(20) > x <- rnorm(100) > e <- rnorm(100, 0, 2) > y <- 0.5 + 2 * x + e > summary(y) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Profiling, Simulation and Data Analysis - Simulation - Quiz No.2.
What will be the output of the following R code?
> set.seed(20) > x <- rnorm(100) > e <- rnorm(100, 0, 2) > y <- 0.5 + 2 * x + e > summary(y)
Min. 1st Qu. Median Mean 3rd Qu. Max. -6.4080 -1.5400 0.6789 0.6893 2.9300 6.5050
Min. 1st Qu. Median Mean 3rd Qu. Max. -6.4080 -10.5400 0.6789 5.6893 2.9300 6.5050
Min. 1st Qu. Median Mean 3rd Qu. Max. -1.4080 -6.5400 0.6789 0.6893 2.9300 6.5050
Error