Skip to content

Commit

Permalink
Merge pull request #56 from fasrc/hotfix_doc
Browse files Browse the repository at this point in the history
Hotfix doc
  • Loading branch information
Naeemkh authored May 12, 2021
2 parents 490ea4f + 55d94df commit d7ea9f3
Show file tree
Hide file tree
Showing 68 changed files with 167 additions and 126 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ src/.DS_Store
/doc/
/Meta/
src-i386
.DS_Store
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: CausalGPS
Type: Package
Title: Matching on generalized propensity scores with continuous exposures
Version: 0.2.2
Version: 0.2.3
Authors@R: c(
person("Naeem", "Khoshnevis", email = "[email protected]",
role=c("aut","cre"),
Expand Down
15 changes: 12 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
## CausalGPS (2021-05-12)
## CausalGPS 0.2.3 (2021-05-12)

### Added
### Changed
### Fixed

* Fixed documentations

### Removed



## CausalGPS 0.2.2 (2021-05-12)

### Added
* estimate_semi_erf
* estimate_hr

### Changed

* Package name: GPSmatching --> CausalGPS

### Fixed

### Removed


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion R/generate_synthetic_data.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' @title
#' Generate synthetic data for GPSmatching package
#' Generate synthetic data for CausalGPS package
#'
#' @description
#' Generates synthetic dataset
Expand Down
8 changes: 4 additions & 4 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ print.gpsm_erf <- function(x, ...){

x <- unclass(x)

cat(" GPSmatching exposure rate function object\n")
cat(" CausalGPS exposure rate function object\n")
cat(" function call: \n")
cat(" *** \n")
print(x$fcall, ...)
Expand Down Expand Up @@ -74,7 +74,7 @@ print.gpsm_pspop <- function(x, ...){

x <- unclass(x)

cat(" GPSmatching pseudo population object\n")
cat(" CausalGPS pseudo population object\n")
cat(" function call: \n")
cat(" *** \n")
print(x$fcall, ...)
Expand All @@ -96,7 +96,7 @@ print.gpsm_pspop <- function(x, ...){
#' @export
summary.gpsm_pspop <- function(object, ...){

cat("GPSmatching pseudo population object summary\n")
cat("CausalGPS pseudo population object summary\n")
cat_list <- function(input){
cat(paste(" size: ", length(input),
", class: ", class(input),
Expand All @@ -116,4 +116,4 @@ summary.gpsm_pspop <- function(object, ...){
cat_list(object$pseudo_pop[[item]])
cat("\n")
}
}
}
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GPSmatching
# CausalGPS


| Resource | Github Actions |
Expand All @@ -19,8 +19,8 @@ An R package for implementing matching on generalized propensity scores with con

```r
library("devtools")
install_github("fasrc/GPSmatching")
library("GPSmatching")
install_github("fasrc/CausalGPS")
library("CausalGPS")
```

## Usage
Expand All @@ -41,7 +41,10 @@ Input parameters:
`running_appr`: running approach (base, parallel)
`covar_bl_method`: specified covariate balance method
`covar_bl_trs`: specified covariate balance threshold
`max_attempt`: maximum number of attempt to satisfy covariate balance
`max_attempt`: maximum number of attempt to satisfy covariate balance
`use_cov_transform`: If `TRUE`, uses internal transformers to achehive covariate balance.
`transformers`: List of transformers (default: list("pow2","pow3")). Users can define a unary function and pass as transformer to the list.
`trim_quantiles`: a vector of two indicating upper and lower trimming quantiles (default: c(0.01, 0.99)).

- Generating Pseudo Population

Expand All @@ -52,6 +55,7 @@ pseudo_pop <- gen_pseudo_pop(Y,
ci_appr = "matching",
running_appr = "base",
pred_model = "sl",
gps_model = "parametric",
use_cov_transform = TRUE,
transformers = list("pow2", "pow3"),
sl_lib = c("m_xgboost","SL.earth","SL.gam",
Expand All @@ -61,6 +65,7 @@ pseudo_pop <- gen_pseudo_pop(Y,
nthread = 1,
covar_bl_method = "absolute",
covar_bl_trs = 0.1,
trim_quantiles = c(0.01,0.99),
max_attempt = 1,
matching_fun = "matching_l1",
delta_n = 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/CausalGPS.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions docs/articles/contribution.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/estimating_gps.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/faq.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/generate_synthetic_data.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/generating_pseudo_population.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/notes_on_sl_wrapper.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/outcome_models.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/testing_the_package.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d7ea9f3

Please sign in to comment.