From a8b05b6130578310cab1ef8913da2830c68aa37e Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 23 May 2024 21:32:44 +0200 Subject: [PATCH] fix --- README.Rmd | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.Rmd b/README.Rmd index f31d029b..73662eed 100644 --- a/README.Rmd +++ b/README.Rmd @@ -108,7 +108,7 @@ library(modelbased) model <- lm(Sepal.Length ~ Petal.Length * Petal.Width, data = iris) # 2. Create a visualisation matrix with expected Z-score values of Petal.Width -vizdata <- modelbased::visualisation_matrix(model, at = c("Petal.Length", "Petal.Width = c(-1, 0, 1)")) +vizdata <- modelbased::visualisation_matrix(model, by = c("Petal.Length", "Petal.Width = c(-1, 0, 1)")) # 3. Revert from expected SD to actual values vizdata <- unstandardize(vizdata, select = "Petal.Width") diff --git a/README.md b/README.md index 1ce9cc8b..38369479 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ library(modelbased) model <- lm(Sepal.Length ~ Petal.Length * Petal.Width, data = iris) # 2. Create a visualisation matrix with expected Z-score values of Petal.Width -vizdata <- modelbased::visualisation_matrix(model, at = c("Petal.Length", "Petal.Width = c(-1, 0, 1)")) +vizdata <- modelbased::visualisation_matrix(model, by = c("Petal.Length", "Petal.Width = c(-1, 0, 1)")) # 3. Revert from expected SD to actual values vizdata <- unstandardize(vizdata, select = "Petal.Width")