-
Notifications
You must be signed in to change notification settings - Fork 7
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
Question about defData vs defDataAdd #143
Comments
That is an excellent question, and yes, I can try to explain the difference. Originally,
The same distinction exists between I've never really been satisfied with this difference, and realize that it is confusing. We are thinking of changing this, but it will likely come at a cost of allowing users to create invalid definition tables in the case when a new table is created. |
Excellent clarification, thank you! Will keep these points in mind. The documentation for Maybe something can be done to simplify this (ex. combining To keep this conversation going, I won't close this thread yet; I'll post more information about how we handle this in the python port when ready👍🏽 |
I totally missed that you were with the IBM/python team. The question makes much more sense. I am afraid you are going to find a lot of these weird things - this grew organically and not always entirely logically. Throw on top of that the fact that I am a mere statistician and not a professional software developer, and who knows what you will find? Fortunately, Jacob joined the effort to really improve things, so things are much better than they once were (though I still take blame for anything that is totally wacky). Regarding your suggestion for defData and defDataAdd, that is we had considered that exact solution (among others). Maybe the way to go. Also, I was wondering if you want to open a python porting-specific issue that you and your colleagues can use (are there more than one of you working on this?), and it can be ongoing. You can decide, but it would be more obvious for me to know where the question is coming from. |
@kgoldfeld Using this thread to follow up with some questions (also on the IBM team) - we noticed that when calling addPeriods without specifying the timevars, simstudy returns the original dataframe duplicated nPeriods of times. Is that normal? Thank you! |
Yes - that is the intended outcome. You might want to do that if you follow up by generating a time-dependent outcome. Here is a simple example:
Does that help clarify, or were you asking something else? |
@kgoldfeld that makes sense to me, thanks for your explanation! @DAVIDCRUZ0202 FYI |
In utility.R, there are two functions.
Does anyone know the difference between these two in functionality? I can't seem to distinguish one from the other. Documentation says that updateDef should only be used with defData, while updateDefAdd should only be used with defDataAdd. What is the difference between how these update definition tables? Thank you in advance!
The text was updated successfully, but these errors were encountered: