saudiwin / idealstan

idealstan offers item-response theory (IRT) ideal-point estimation for binary, ordinal, counts and continuous responses with time-varying and missing-data inference. Latent space model also included. Full and approximate Bayesian sampling with 'Stan' (www.mc-stan.org).
https://cran.r-project.org/web/packages/idealstan/index.html
GNU General Public License v2.0
51 stars 12 forks source link

could not find function "run_id" #5

Closed jpcoblentz closed 5 years ago

jpcoblentz commented 5 years ago

Any idea what's going on here?

ideal_votes <- id_make(score_data = votes_long,
        outcome = "Rank",
        person_id = "voterID",
        item_id = "Candidate",
        high_val = 1,
        low_val = 26,
        miss_val = ""
        )

votes_model <- id_estimate(idealdata= ideal_votes,
                            model_type=3,
                            fixtype='vb',
                            auto_id = F,
                            use_vb=T)

Error in run_id(object = object, this_data = this_data, nfix = nfix, restrict_ind_high = restrict_ind_high, : could not find function "run_id"

saudiwin commented 5 years ago

Are you using the development version?

jpcoblentz commented 5 years ago

I am- it still throws this error:

Error in run_id(object = object, this_data = this_data, nfix = nfix, restrict_ind_high = restrict_ind_high,  : 
  could not find function "run_id"
saudiwin commented 5 years ago

Please don't use the development version when running models, only if you want to look at code or work on it. If there is a feature you are interested in, just let me know and I can tell you if/when it's implemented.

jpcoblentz commented 5 years ago

This error also happens on the non-dev version though

saudiwin commented 5 years ago

The only thing wrong in your syntax is that the auto_id option no longer exists. If you want me to look more, you'll need to send me some data.

jpcoblentz commented 5 years ago

I'll send you some code + data if that works?

On Mon, Apr 8, 2019 at 11:47 AM Robert Kubinec notifications@github.com wrote:

The only thing wrong in your syntax is that the auto_id option no longer exists. If you want me to look more, you'll need to send me some data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/saudiwin/idealstan/issues/5#issuecomment-480888359, or mute the thread https://github.com/notifications/unsubscribe-auth/AtJKrtXO55PhxzdASg6CsLuy7tff8I2Bks5ve2SQgaJpZM4cWdw8 .

saudiwin commented 5 years ago

Sure. rmk7@nyu.edu

On Mon, Apr 8, 2019, 12:33 PM Jacoblentz415 notifications@github.com wrote:

I'll send you some code + data if that works?

On Mon, Apr 8, 2019 at 11:47 AM Robert Kubinec notifications@github.com wrote:

The only thing wrong in your syntax is that the auto_id option no longer exists. If you want me to look more, you'll need to send me some data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/saudiwin/idealstan/issues/5#issuecomment-480888359, or mute the thread < https://github.com/notifications/unsubscribe-auth/AtJKrtXO55PhxzdASg6CsLuy7tff8I2Bks5ve2SQgaJpZM4cWdw8

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/saudiwin/idealstan/issues/5#issuecomment-480905714, or mute the thread https://github.com/notifications/unsubscribe-auth/AKdauTkeewSGCHthWdi5DEHh-MFVA74Xks5ve29RgaJpZM4cWdw8 .

saudiwin commented 5 years ago

So the correct option for fixtype is "vb_full" not "vb".