More on model building
Including some needed material in model-basics
This commit is contained in:
@@ -299,30 +299,6 @@ tibble(education = seq(5, 25)) %>%
|
||||
```
|
||||
|
||||
|
||||
Other useful arguments to `seq_range()`:
|
||||
|
||||
* `pretty = TRUE` will generate a "pretty" sequence, i.e. something that looks
|
||||
nice to the human eye. This is useful if you want to produce tables of
|
||||
output:
|
||||
|
||||
```{r}
|
||||
seq_range(c(0.0123, 0.923423), n = 5)
|
||||
seq_range(c(0.0123, 0.923423), n = 5, pretty = TRUE)
|
||||
```
|
||||
|
||||
* `trim = 0.1` will trim off 10% of the tail values. This is useful if the
|
||||
variables has an long tailed distribution and you want to focus on generating
|
||||
values near the center:
|
||||
|
||||
```{r}
|
||||
x <- rcauchy(100)
|
||||
seq_range(x, n = 5)
|
||||
seq_range(x, n = 5, trim = 0.10)
|
||||
seq_range(x, n = 5, trim = 0.25)
|
||||
seq_range(x, n = 5, trim = 0.50)
|
||||
```
|
||||
|
||||
|
||||
### Additive models
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user