Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brsmatch() fails silently when there are too many pairs #11

Closed
skent259 opened this issue May 22, 2021 · 0 comments · Fixed by #18
Closed

brsmatch() fails silently when there are too many pairs #11

skent259 opened this issue May 22, 2021 · 0 comments · Fixed by #18

Comments

@skent259
Copy link
Owner

library(rsmatch)
data(oasis)

pairs <- brsmatch(
  n_pairs = 14,
  oasis,
  id = "subject_id", time = "visit", trt_time = "time_of_ad",
  balance = FALSE
)
pairs
#>    subject_id pair_id type
#> 1   OAS2_0002      NA <NA>
#> 2   OAS2_0007      NA <NA>
#> 3   OAS2_0009      NA <NA>
#> 4   OAS2_0010      NA <NA>
#> 5   OAS2_0014      NA <NA>
#> 6   OAS2_0016      NA <NA>
#> 7   OAS2_0021      NA <NA>
#> 8   OAS2_0023      NA <NA>
#> 9   OAS2_0026      NA <NA>
#> 10  OAS2_0028      NA <NA>
#> 11  OAS2_0032      NA <NA>
#> 12  OAS2_0037      NA <NA>
#> 13  OAS2_0039      NA <NA>
#> 14  OAS2_0040      NA <NA>
#> 15  OAS2_0043      NA <NA>
#> 16  OAS2_0046      NA <NA>
#> 17  OAS2_0050      NA <NA>
#> 18  OAS2_0058      NA <NA>
#> 19  OAS2_0060      NA <NA>
#> 20  OAS2_0063      NA <NA>
#> 21  OAS2_0075      NA <NA>
#> 22  OAS2_0079      NA <NA>
#> 23  OAS2_0080      NA <NA>
#> 24  OAS2_0081      NA <NA>
#> 25  OAS2_0089      NA <NA>
#> 26  OAS2_0098      NA <NA>
#> 27  OAS2_0099      NA <NA>
#> 28  OAS2_0102      NA <NA>
#> 29  OAS2_0104      NA <NA>
#> 30  OAS2_0108      NA <NA>
#> 31  OAS2_0111      NA <NA>
#> 32  OAS2_0112      NA <NA>
#> 33  OAS2_0113      NA <NA>
#> 34  OAS2_0114      NA <NA>
#> 35  OAS2_0116      NA <NA>
#> 36  OAS2_0124      NA <NA>
#> 37  OAS2_0134      NA <NA>
#> 38  OAS2_0137      NA <NA>
#> 39  OAS2_0139      NA <NA>
#> 40  OAS2_0140      NA <NA>
#> 41  OAS2_0150      NA <NA>
#> 42  OAS2_0159      NA <NA>
#> 43  OAS2_0160      NA <NA>
#> 44  OAS2_0162      NA <NA>
#> 45  OAS2_0172      NA <NA>
#> 46  OAS2_0175      NA <NA>
#> 47  OAS2_0179      NA <NA>
#> 48  OAS2_0181      NA <NA>
#> 49  OAS2_0182      NA <NA>
#> 50  OAS2_0184      NA <NA>
#> 51  OAS2_0185      NA <NA>

Created on 2021-05-22 by the reprex package (v0.3.0)

skent259 added a commit that referenced this issue Feb 19, 2024
* Add testing to check in multiple scenarios
* Fixes (#11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant