Skip to content

Commit

Permalink
small fix for nonnprobsvycheck and add package logo
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszChrostowski committed Dec 24, 2024
1 parent 15219d6 commit dfa876a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions R/simple_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,6 @@ nonprobsvycheck.nonprobsvy <- function(x, object, dig = 10) {
prob_totals = prob_totals,
balance = diff
)

class(result) <- "nonprobsvycheck"
return(result)
}
#' @title Check the balance between probability and non-probability samples
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(
)
```

# `nonprobsvy`: an R package for modern statistical inference methods based on non-probability samples
# `nonprobsvy`: an R package for modern statistical inference methods based on non-probability samples <img src="man/figures/logo.png" align="right" width="150"/>

<!-- badges: start -->

Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# `nonprobsvy`: an R package for modern statistical inference methods based on non-probability samples
# `nonprobsvy`: an R package for modern statistical inference methods based on non-probability samples <img src="man/figures/logo.png" align="right" width="150"/>

<!-- badges: start -->

Expand Down Expand Up @@ -503,11 +503,6 @@ summary(result_dr)
#> 1.000 1.071 1.313 1.479 1.798 2.647
#> -------------------------
#>
#> Covariate balance:
#> (Intercept) x2
#> 25062.8473 -517.5862
#> -------------------------
#>
#> Residuals:
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> -0.99999 0.06603 0.23778 0.26046 0.44358 0.62222
Expand Down Expand Up @@ -614,11 +609,6 @@ summary(result_ipw)
#> 1.000 1.071 1.313 1.479 1.798 2.647
#> -------------------------
#>
#> Covariate balance:
#> (Intercept) x2
#> 25062.8473 -517.5862
#> -------------------------
#>
#> Residuals:
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> -0.99999 0.06603 0.23778 0.26046 0.44358 0.62222
Expand Down
Binary file added man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dfa876a

Please sign in to comment.