Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
droodman committed Jun 9, 2022
2 parents dd6cb73 + 91a68df commit 362e6a9
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ WildBootTests.jl performs wild bootstrap-based hypothesis tests at extreme speed
## Documentation
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://droodman.github.io/WildBootTests.jl/dev)

## Julia example
## Examples
### From Julia

```
using WildBootTests, CSV, DataFrames, StatsModels, Plots
Expand All @@ -21,16 +22,17 @@ test # display results summary
plot(plotpoints(test)...) # plot confidence curve
```

## R example, via wildboottestjlr
### From R via fwildclusterboot
```
library(wildboottestjlr)
library(fwildclusterboot)
df <- read.csv("https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/sandwich/PetersenCL.csv")
lm_fit <- lm(y ~ x, data = fd)
boot_lm <- boottest(lm_fit, clustid = "firm", param = "x", beta0 = 1, B = 999)
lm_fit <- lm(y ~ x, data = df)
boot_lm <- boottest(lm_fit, clustid = "firm", param = "x", r = 1, B = 999, boot_algo = "WildBootTests.jl")
summary(boot_lm)
plot(boot_lm)
```

## R example, via JuliaConnectoR
### From via JuliaConnectoR
```
library(JuliaConnectoR)
startJuliaServer()
Expand All @@ -46,7 +48,7 @@ plotpoints <- WildBootTests$plotpoints(test)
plot(plotpoints$X[[1]], plotpoints$p, type="l")
```

## Python example, via PyJulia
### From Python via PyJulia
```
from julia import WildBootTests as wbt
import pandas as pd
Expand All @@ -66,7 +68,14 @@ plotpoints = wbt.plotpoints(test)
plt.plot(plotpoints.X[0], plotpoints.p)
```

## Stata example, via Python and PyJulia
### From Stata via boottest
```
import delimited https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/sandwich/PetersenCL.csv
regress y x, cluster(firm)
boottest x, reps(999) julia
```

### From Stata via Python and PyJulia
```
import delimited https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/sandwich/PetersenCL.csv
python
Expand Down

2 comments on commit 362e6a9

@droodman
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/62048

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.14 -m "<description of version>" 362e6a93ddb92a6a66212075df50082d733b2c20
git push origin v0.7.14

Please sign in to comment.