-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdewey.qmd
50 lines (32 loc) · 1.12 KB
/
dewey.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
site-path: "dewey.html"
format:
html:
toc-title: dewey
toc: true
toc-location: right
---
<style>
code { white-space: normal; }
</style>
# dewey <img src="assets/dewey.svg" align="right" height="139" /> {.unlisted .unnumbered}
An R library for a variety of things
A small collection of functions that may be helpful for STATA users or regular human beings.
# Install Process
```{R}
#| eval: false
install.packages("devtools")
devtools::install_github("guslipkin/dewey")
```
# `regsearch`
`(data, dependent, independent, minvar = 1, maxvar, family, topN = 0, interactions = FALSE, multi = FALSE, ...)`
An exhaustive search regression built on base R
# `ifelsedata`
`(x, y, arg = NULL, matchCols = FALSE)`
Fast `data.frame` comparisons at the cell level
# `diffFill`
`(x, lag = 1, differences = 1, ...)`
A wrapper for the base `diff` function that returns a `data.frame` of the same length as the input. Allows for vector input for `lag` or `differences`.
# `lagMultiple`
`(x, k = 1)`
Appropriately lags an input variable and returns a `data.frame` of the same length as the input. Allows for vector input for `k`.