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

Code not working & including a none option for estimation #4

Open
JoshSchramm94 opened this issue Sep 8, 2022 · 4 comments
Open

Code not working & including a none option for estimation #4

JoshSchramm94 opened this issue Sep 8, 2022 · 4 comments

Comments

@JoshSchramm94
Copy link

Thanks for this awesome package.
Somehow, the code in the example, when running the following code "cbc.hb <- estimateMNLfromDesignHB". I get multiple error messages:

  1. argument "directory" is missing, with no default --> however, I can not set the directory similar to choicemodelR.
  2. Error in mcmcIters * pitersUsed : non-numeric argument to binary operator --> I am not quite sure, what is causing this error.

Somehow, I can not run this final code without any errors.

  1. And another question. What if I also include a none option? I know from ChoicemodelR that you take out the none option however, code the choice as 4 (in case there are 3 options plus a none option for one task). It would be awesome if you could share these codes, as I really like the codes in your book.

  2. Lastly, is there a chance to get the successive estimates of alpha draws? I think I can get them when using the compdraw in choicemodelR, however, the problem is that i do not get them for all attribute levels, but only for the one of the model matrix formula.

I would be happy to hear from you. Thanks a lot

@cnchapman
Copy link
Owner

cnchapman commented Sep 12, 2022 via email

@JoshSchramm94
Copy link
Author

Hi Chris,

thanks a lot for your help. Now everything is working. Thanks for providing the functions :-).

Best wishes,
Josh

@JoshSchramm94
Copy link
Author

Hi Chris,

sorry for reopening this issue. I was reading about choicetools again in your conference paper of the Sawtooth Software Proceedings from 2021. I was trying to run the MaxDiff example, however, when I am exporting my .cho file, my export only includes a .cho file, an .att file, as well as a .position file. When I try to read in the data file, R gives me the error message due to my temp.csv (object 'temp.csv' not found). I could export the data .csv file from sawtooth, however, I am not quite sure if this is meant by this and if yes, which order should that data frame have (as mine includes system variables as well). I am using the MaxDiff study from the Sawtooth software sample studies.

And I have a second question, how I would include a direct or indirect anchoring MaxDiff Approach? For me, it seems that the indirect approach is directly included in the .cho file, and I can define the direct approach before exporting the .cho file. However, I am not sure how to include it in the HB estimation.

Happy to hear from you as I think it is quite cool to have a package that directly works with the data from Sawtooth.

Thanks a lot.

@JoshSchramm94 JoshSchramm94 reopened this Sep 20, 2022
@cnchapman
Copy link
Owner

cnchapman commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants