Skip to content

Conversation

@michaelstepner
Copy link
Owner

This PR implements an improved greedy algorithm, which is slightly more computationally demanding but finds more matches and better matches.

Details of the change in algorithm are described in the help file.

Michael Stepner and others added 30 commits October 26, 2019 16:46
Before:
Found up to maxmatches for each case, then tried to find up to maxmatches for the next case. So some cases would go unmatched because the only available control was used as an nth match for a previous case.

Now:
Find a first match for each case, then a second, etc, up to maxmatches. So any case that can have at least one match gets at least one.
When multiple controls exist within the caliper tolerance, always select the closest one (in terms of sum of squared errors)
See if this resolves:
mkdir: cannot create directory ‘/usr/local/stata16’: Permission denied
https://github.com/michaelstepner/calipmatch/actions/runs/3228506690/jobs/5284691399
jethaaly and others added 14 commits October 12, 2022 22:50
The wrong return code was being tested for.
The error was being caused by the syntax statement
before -calipmatch-, rather than -calipmatch- itself.

This changed in 57613d3
The wrong return code was being tested for.
The error was being caused by the syntax statement
before -calipmatch-, rather than -calipmatch- itself.

This changed in 57613d3
- Update comments
- Recategorize / rename categories
- Simplify tests for 'perfect match per case'
- Set seeds only once
michaelstepner and others added 10 commits October 19, 2022 22:53
* Automatically update embedded sthlp in README

* Bugfix detached HEAD

```
[detached HEAD e8fbcab] README: update embedded calipmatch.sthlp
 1 file changed, 144 deletions(-)
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use

    git push origin HEAD:<name-of-remote-branch>
```

* README: update embedded calipmatch.sthlp

* Bugfix replacement of sthlp in README

* README: update embedded calipmatch.sthlp

* Whitespace changes in code

* Bugfix: detection of changes

* GHA: Update names of steps

Co-authored-by: OppInsights-Bot <info@opportunityinsights.org>
* Upgrade to Stata 17

* Make stata version configurable by environment variable

* Install Stata 16 instead

* Use Stata 16 for all workflows
* GHA action version upgrades and indentation fix

* GHA: check if version number in PR has incremented

* Fix missing syntax in GHA

* GHA: bugfix paths

* Fix nested variable names

* Assign value to variable with name containing var

Ref: https://stackoverflow.com/questions/13716607/creating-a-string-variable-name-from-the-value-of-another-string

* Allow single-digit day in date

* WIP: update last-updated date to today

* WIP: try removing second match parameter

* WIP: bugfix sed

* WIP: remove all match parameters from substitution

* WIP: sed substitution on specific line

* WIP: simplify regular expression

* Modify date replacement

* WIP debug date and add package date update

* Fix calipmatch.pkg name

* Fix package date name

* Fix package file name

* Separate code to update pkg date

* Simplify date update in pkg file

* Push date updates to repo

* Bugfix: push from the PR directory

* Update 'last updated' dates

* Add pkg file as trigger for version_increment GHA

* Bugfix sed syntax

-iE was treating 'E' as the suffix for a backup file

also, we no longer need -E because we're not using regex extended syntax

* Tidy step names

Co-authored-by: jethaaly <alykhan.jetha@mail.utoronto.ca>
Co-authored-by: OppInsights-Bot <info@opportunityinsights.org>
* Add test: minimize sum of squares

* Fix test: minimize sum of squares

* Style/formatting changes

Co-authored-by: Michael Stepner <software@michaelstepner.com>
* GHA: auto update README installation instructions

* README: update installation instructions

* Bugfix escaping in multiline string

* Actually insert README installation instructions

* README: update installation instructions

Co-authored-by: OppInsights-Bot <info@opportunityinsights.org>
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 this pull request may close these issues.

4 participants