Skip to content

Commit f83c169

Browse files
committed
draft
1 parent 1110626 commit f83c169

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vignettes/practical_comparison.Rmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ library(marginaleffects)
4444
library(ggeffects)
4545
```
4646

47+
The package design is built around following three questions:
48+
49+
1. Predictor of Interest: Which variable's effect on the outcome do you want to analyze? This is specified with the `by`, `contrast`, or `slope` arguments.
50+
51+
2. Evaluation Points: At which specific values should the predictor be evaluated? This can also be defined in the `by` argument; additionally, you have the arguments `length` and `range` especially for continuous predictors. For a more refined control over the evaluation points, see the [data grids](https://easystats.github.io/insight/reference/get_datagrid.html) vignette.
52+
53+
3. Target Population: What population should the inferences generalize to? The `estimate` argument controls this by defining whether predictions are for a typical individual, an average of the sample, or an average of a broader population.
54+
55+
# Estimated marginal means
56+
57+
We start with the default `estimate` option (`"typical"`), which is the same as if we were estimating marginal means using the *emmeans* package.
58+
4759
## Categorical predictors
4860

4961
```{r}

0 commit comments

Comments
 (0)