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

vc(ov) argument: allow function and rename? #34

Closed
ghost opened this issue Aug 10, 2016 · 3 comments
Closed

vc(ov) argument: allow function and rename? #34

ghost opened this issue Aug 10, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 10, 2016

Sorry, I placed this first as a comment to commit 03bdb72, but don not know if it gets through to you this way. So I opened this issue as suggestions:

Would it be possible to pass a vcov calculation function? This is fairly standard option, see, e.g. lmtest::coeftest.

I think, in other packages/functions the argument is called vcov or vcov., see packages lmtest, sandwich, car, ... (with the dot being there for imho historical reasons (pre NAMESPACE times) and allowing for partial argument matching). Thus, maybe renaming the vc argument could be beneficial from a consistency perspective?

@leeper
Copy link
Owner

leeper commented Aug 10, 2016

  1. Not sure about passing a function. Is passing FUN much more convenient than passing FUN(x)?
  2. Probably a good idea to standardize the name. Will explore that - probably to vcov.

@leeper leeper added this to the CRAN Release milestone Aug 10, 2016
@ghost
Copy link
Author

ghost commented Aug 12, 2016

About the passing of a function:
Well, some users might just be to used to it, given that so many other packages allow for passing either the matrix itself or an estimation function for it.

Allowing for passing a function could become convienent in your own code in margins once you encounter two different models where the function can be applied on. (Not sure if that could be the case for margins in the future; think of a list of models inputted for some comparison or so).

@leeper
Copy link
Owner

leeper commented Aug 16, 2016

I see. I guess there's no harm it making it an option. sandwich does this with a pretty simple conditional statement

@leeper leeper self-assigned this Aug 16, 2016
@leeper leeper closed this as completed in d85e0d6 Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant