mirror of
https://github.com/dwinkler1/fran.git
synced 2026-02-19 22:50:59 -05:00
added jgd
This commit is contained in:
parent
fe5868d574
commit
c46bc7dea5
6 changed files with 79 additions and 14 deletions
10
test/test.R
10
test/test.R
|
|
@ -1,13 +1,17 @@
|
|||
cat("Testing\n")
|
||||
cat("\n============================================================ jgd =========================================================================\n")
|
||||
library(jgd)
|
||||
jgd()
|
||||
|
||||
cat("\n============================================================ fwildclusterboot ============================================================\n")
|
||||
library(fwildclusterboot)
|
||||
data(voters)
|
||||
lm_fit <- lm(
|
||||
proposition_vote ~ treatment + ideology1 + log_income + Q1_immigration ,
|
||||
proposition_vote ~ treatment + ideology1 + log_income + Q1_immigration ,
|
||||
data = voters
|
||||
)
|
||||
boot_lm <- boottest(
|
||||
lm_fit,
|
||||
lm_fit,
|
||||
clustid = "group_id1",
|
||||
param = "treatment",
|
||||
B = 999
|
||||
|
|
@ -21,7 +25,7 @@ boot_lmjl <- boottest(
|
|||
)
|
||||
#setBoottest_engine("WildBootTests.jl")
|
||||
boot_lmjl2 <- boottest(
|
||||
lm_fit,
|
||||
lm_fit,
|
||||
clustid = "group_id1",
|
||||
param = "treatment",
|
||||
B = 999
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue