-
-
Notifications
You must be signed in to change notification settings - Fork 44
Adjusting my package so it can work with get_data() #1179
Description
Hi,
I am currently developing a new package for maximum likelihood estimations, and am trying to make it compatible with marginaleffects. I am able to have marginaleffects' slope() avg_slope() and all their functions working, as long as I provide the data as newdata to their functions. When I don't I get an error. I am contacting you because I was referred by the author of marginaleffects to your package, since it's the one that marginaleffects uses to get the data. My package extends maxLik, and keeps everything they have. I also add a call, that works with your get_call(), function. The name of the dataset is in the call under data. I've checked get_call(object)[["data"]] and it prints the dataset name to the console. But with get_data(object) I get NULL. Is there any way I can store the data name in my objects so that get_data() pulls it?
Thanks for any help.
alfisankipan.