insongkim / PanelMatch

117 stars 36 forks source link

plot.matched.set not found #27

Closed drjhw closed 2 years ago

drjhw commented 5 years ago

I am using a recent version of PanelMatch:- RemoteHost: api.github.com RemoteRepo: PanelMatch RemoteUsername: insongkim RemoteRef: master RemoteSha: 7319c9f872c10d2731ddeec4a5f8de217508f462 GithubRepo: PanelMatch GithubUsername: insongkim GithubRef: master GithubSHA1: 7319c9f872c10d2731ddeec4a5f8de217508f462 NeedsCompilation: yes Packaged: 2019-04-20 19:57:31 UTC; drjhw Author: In Song Kim [aut, cre], Erik Wang [aut], Kosuke Imai [aut] Maintainer: In Song Kim insong@mit.edu Built: R 3.4.4; x86_64-pc-linux-gnu; 2019-04-20 19:57:32 UTC; unix

I wish to identify the matched sets (individual treated units and individual matched controls) in my analysis (that used 'CBPS.match' refinement).

getmatched.sets() only reports the numbers of matched sets in a data-set - not the individual matched sets (nor does it allow specification of the method of matching refinement)

matched_set() tells me that it requires the ids of the treated units - which is the information that I want myself.

plot.matched.set() is unavailable:

plot.matched.set(mymodel) Error in plot.matched.set(mymodel) : could not find function "plot.matched.set"

print.matched.set() is also unavailable:

print.matched.set(mymodel) Error in print.matched.set(mymodel) : could not find function "print.matched.set"

summary.matched.set() is also unavailable:

summary.matched.set(mymodel) Error in summary.matched.set(mymodel) : could not find function "summary.matched.set"

get_covariate_balance() does not appear to recognise mymodel as a matched set object:- get_covariate_balance(mymodel, data=gdat, covariates='covar1') Error in get_covariate_balance(mymodel, data = gdat, covariates = "covar1") : Please pass a matched.set object

So, I am stuck. I'd be grateful for your help.

adamrauh commented 2 years ago

I'm guessing this was just an issue related to the package not loading correctly. It has not seemed to be a common problem, so closing for now. Please follow up if this was never resolved.