mirror of
https://github.com/dwinkler1/fran.git
synced 2026-02-19 22:50:59 -05:00
Testing for julia engine of fwildclusterboot
This commit is contained in:
parent
5160c403b5
commit
5805f09758
3 changed files with 39 additions and 39 deletions
22
.github/workflows/check.yml
vendored
22
.github/workflows/check.yml
vendored
|
|
@ -11,29 +11,11 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
tests-ubuntu:
|
run-tests:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: cachix/cachix-action@v16
|
|
||||||
with:
|
|
||||||
name: rde
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
extraPullNames: rstats-on-nix, nix-community
|
|
||||||
- run: nix build .
|
|
||||||
- run: nix flake check . --all-systems
|
|
||||||
- run: nix develop -c Rscript test/test.R
|
|
||||||
test-darwin:
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [macos-latest]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,12 @@
|
||||||
extraRPackages = let
|
extraRPackages = let
|
||||||
fetchfromGitHubJSONFile = path: prev.fetchFromGitHub (builtins.fromJSON (builtins.readFile path));
|
fetchfromGitHubJSONFile = path: prev.fetchFromGitHub (builtins.fromJSON (builtins.readFile path));
|
||||||
in {
|
in {
|
||||||
## f
|
## F
|
||||||
fwildclusterboot = prev.rPackages.buildRPackage {
|
fwildclusterboot = prev.rPackages.buildRPackage {
|
||||||
name = "fwildclusterboot";
|
name = "fwildclusterboot";
|
||||||
src = fetchfromGitHubJSONFile ./versions/fwildclusterboot.json;
|
src = fetchfromGitHubJSONFile ./versions/fwildclusterboot.json;
|
||||||
propagatedBuildInputs = builtins.attrValues {
|
propagatedBuildInputs =
|
||||||
|
builtins.attrValues {
|
||||||
inherit
|
inherit
|
||||||
(prev.rPackages)
|
(prev.rPackages)
|
||||||
collapse
|
collapse
|
||||||
|
|
@ -48,7 +49,8 @@
|
||||||
RcppArmadillo
|
RcppArmadillo
|
||||||
RcppEigen
|
RcppEigen
|
||||||
;
|
;
|
||||||
};
|
}
|
||||||
|
++ [(prev.julia-bin.withPackages ["WildBootTests"])];
|
||||||
};
|
};
|
||||||
|
|
||||||
## H
|
## H
|
||||||
|
|
|
||||||
16
test/test.R
16
test/test.R
|
|
@ -12,7 +12,23 @@ boot_lm <- boottest(
|
||||||
param = "treatment",
|
param = "treatment",
|
||||||
B = 999
|
B = 999
|
||||||
)
|
)
|
||||||
|
boot_lmjl <- boottest(
|
||||||
|
lm_fit,
|
||||||
|
clustid = "group_id1",
|
||||||
|
param = "treatment",
|
||||||
|
B = 999,
|
||||||
|
engine = "WildBootTests.jl"
|
||||||
|
)
|
||||||
|
setBoottest_engine("WildBootTests.jl")
|
||||||
|
boot_lmjl2 <- boottest(
|
||||||
|
lm_fit,
|
||||||
|
clustid = "group_id1",
|
||||||
|
param = "treatment",
|
||||||
|
B = 999
|
||||||
|
)
|
||||||
summary(boot_lm)
|
summary(boot_lm)
|
||||||
|
summary(boot_lmjl)
|
||||||
|
summary(boot_lmjl2)
|
||||||
|
|
||||||
cat("\n============================================================ httpgd ============================================================\n")
|
cat("\n============================================================ httpgd ============================================================\n")
|
||||||
library(httpgd)
|
library(httpgd)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue