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

plot not working with simplified example #116

Closed
ethanwhite opened this issue Mar 15, 2019 · 0 comments
Closed

plot not working with simplified example #116

ethanwhite opened this issue Mar 15, 2019 · 0 comments

Comments

@ethanwhite
Copy link
Member

@ethanwhite ethanwhite commented Mar 15, 2019

Simplifying the example in the README to get a reasonable run time results in an error when calling plot

library(LDATS)
data(rodents)
dtt <- rodents$document_term_table
dct <- rodents$document_covariate_table
weights <- document_weights(dtt)
TS_controls <- TS_controls_list(timename = "newmoon")
controls <- LDA_TS_controls_list(TS_control = TS_controls)
r_LDATS <- LDA_TS(dtt, dct, topics = 2:5, nseeds = 2,
                  formulas = c(~1), nchangepoints = 1,
                  weights = weights, control = controls)

The plot:

> plot(r_LDATS)
Error in `[.data.frame`(x$"Selected TS model"$data, , tname) : 
  undefined columns selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.