From eec88edb14f7e64448067372e6c05ab52166a61c Mon Sep 17 00:00:00 2001 From: InkaRo Date: Tue, 13 Aug 2024 14:24:13 +0100 Subject: [PATCH] I edited myfile.Rmd by adding rnorm --- myfile.Rmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/myfile.Rmd b/myfile.Rmd index dce4627..1c8a9a7 100644 --- a/myfile.Rmd +++ b/myfile.Rmd @@ -15,6 +15,13 @@ When you click the **Knit** button a document will be generated that includes bo ```{r cars} summary(cars) +# Simulate predictor variable +x <- rnorm(n = 100) +# Simulate response variable with some noise +y <- 2 * x + rnorm(n = 100, sd = 0.2) + +# Plot the data +plot(x = x, y = y) ``` ## Including Plots