Skip to content

Commit 7efe2f0

Browse files
committed
docs
1 parent 4ca7095 commit 7efe2f0

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

R/estimate_means.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@
211211
#' @section Predictions and contrasts at meaningful values (data grids):
212212
#'
213213
#' To define representative values for focal predictors (specified in `by`,
214-
#' `contrast`, and `trend`), you can use several methods. These values are
214+
#' `contrast`, and `slope`), you can use several methods. These values are
215215
#' internally generated by `insight::get_datagrid()`, so consult its
216216
#' documentation for more details.
217217
#'
218218
#' * You can directly specify values as strings or lists for `by`, `contrast`,
219-
#' and `trend`.
219+
#' and `slope`.
220220
#' * For numeric focal predictors, use examples like `by = "gear = c(4, 8)"`,
221221
#' `by = list(gear = c(4, 8))` or `by = "gear = 5:10"`
222222
#' * For factor or character predictors, use `by = "Species = c('setosa', 'virginica')"`

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The two probably most popular R packages for extracting these quantities of inte
4545

4646
The package's approach simplifies estimation by focusing on three key questions:
4747

48-
1. Predictor of Interest: Which variable's effect do you want to analyze? This is specified with the `by`, `contrast`, or `trend` arguments.
48+
1. Predictor of Interest: Which variable's effect do you want to analyze? This is specified with the `by`, `contrast`, or `slope` arguments.
4949

5050
2. Evaluation Points: At which specific values should the predictor be evaluated? This is also defined in the `by` argument. For a more refined control over the evaluation points, see the [data grids](https://easystats.github.io/insight/reference/get_datagrid.html) vignette.
5151

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The package’s approach simplifies estimation by focusing on three key
3434
questions:
3535

3636
1. Predictor of Interest: Which variable’s effect do you want to
37-
analyze? This is specified with the `by`, `contrast`, or `trend`
37+
analyze? This is specified with the `by`, `contrast`, or `slope`
3838
arguments.
3939

4040
2. Evaluation Points: At which specific values should the predictor be
@@ -175,13 +175,13 @@ model <- lm(Sepal.Width ~ Species, data = iris)
175175
means <- estimate_means(model, by = "Species")
176176
means
177177
## Estimated Marginal Means
178-
##
178+
##
179179
## Species | Mean | SE | 95% CI | t(147)
180180
## ------------------------------------------------
181181
## setosa | 3.43 | 0.05 | [3.33, 3.52] | 71.36
182182
## versicolor | 2.77 | 0.05 | [2.68, 2.86] | 57.66
183183
## virginica | 2.97 | 0.05 | [2.88, 3.07] | 61.91
184-
##
184+
##
185185
## Variable predicted: Sepal.Width
186186
## Predictors modulated: Species
187187

@@ -234,13 +234,13 @@ model <- lm(Sepal.Width ~ Species, data = iris)
234234
contrasts <- estimate_contrasts(model, contrast = "Species")
235235
contrasts
236236
## Marginal Contrasts Analysis
237-
##
237+
##
238238
## Level1 | Level2 | Difference | SE | 95% CI | t(147) | p
239239
## ------------------------------------------------------------------------------
240240
## versicolor | setosa | -0.66 | 0.07 | [-0.79, -0.52] | -9.69 | < .001
241241
## virginica | setosa | -0.45 | 0.07 | [-0.59, -0.32] | -6.68 | < .001
242242
## virginica | versicolor | 0.20 | 0.07 | [ 0.07, 0.34] | 3.00 | 0.003
243-
##
243+
##
244244
## Variable predicted: Sepal.Width
245245
## Predictors contrasted: Species
246246
## p-values are uncorrected.
@@ -269,7 +269,7 @@ difference <- estimate_contrasts(
269269
# no line break for table
270270
print(difference, table_width = Inf)
271271
## Marginal Contrasts Analysis
272-
##
272+
##
273273
## Level1 | Level2 | Petal.Length | Difference | SE | 95% CI | t(144) | p
274274
## ---------------------------------------------------------------------------------------------
275275
## versicolor | setosa | 1.00 | -1.70 | 0.34 | [-2.37, -1.02] | -4.97 | < .001
@@ -281,7 +281,7 @@ print(difference, table_width = Inf)
281281
## versicolor | setosa | 6.90 | -1.78 | 1.44 | [-4.62, 1.06] | -1.24 | 0.218
282282
## virginica | setosa | 6.90 | -2.25 | 1.42 | [-5.06, 0.56] | -1.58 | 0.116
283283
## virginica | versicolor | 6.90 | -0.47 | 0.28 | [-1.03, 0.09] | -1.65 | 0.101
284-
##
284+
##
285285
## Variable predicted: Sepal.Width
286286
## Predictors contrasted: Species
287287
## p-values are uncorrected.
@@ -383,15 +383,15 @@ pred1$Petal.Length <- iris$Petal.Length # Add true response
383383
# Print first 5 lines of output
384384
head(pred1, n = 5)
385385
## Model-based Predictions
386-
##
386+
##
387387
## Sepal.Length | Predicted | SE | 95% CI | Residuals | Petal.Length
388388
## -------------------------------------------------------------------------
389389
## 5.10 | 2.38 | 0.10 | [2.19, 2.57] | -0.98 | 1.40
390390
## 4.90 | 2.00 | 0.11 | [1.79, 2.22] | -0.60 | 1.40
391391
## 4.70 | 1.63 | 0.12 | [1.39, 1.87] | -0.33 | 1.30
392392
## 4.60 | 1.45 | 0.13 | [1.19, 1.70] | 0.05 | 1.50
393393
## 5.00 | 2.19 | 0.10 | [1.99, 2.39] | -0.79 | 1.40
394-
##
394+
##
395395
## Variable predicted: Petal.Length
396396

397397
# Same for model 2

man/estimate_contrasts.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/estimate_means.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/estimate_slopes.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)