insongkim / PanelMatch

117 stars 35 forks source link

moderating variable function #74

Closed junhyeokjang1 closed 3 years ago

junhyeokjang1 commented 3 years ago

Hi,

I recently had my R reinstalled, and reinstalled the PanelMatch package. It seems the moderating variable function does not work. I installed this package from github, using devtools.

Is there any issue with this function?

adamrauh commented 3 years ago

Hi @hijjang13,

Could you provide a bit more information or a reproducible example? What error are you getting? We did update the moderating variable code to change the argument names at one point.

junhyeokjang1 commented 3 years ago

Hi @adamrauh

I ran the following code.

PE.results <- PanelEstimate(sets = PM.results, data = Cleaned_matching, moderating.variable = 'failed')

And I got the following error.

unused argument (moderating.variable = "demo")

I may have run a depricated code?

junhyeokjang1 commented 3 years ago

The error was :unused argument (moderating.variable = "failed")*

adamrauh commented 3 years ago

ah, yeah. Try changing moderating.variable to moderator