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

analyze() and other functions not included in psycho 0.5.0 #115

Closed
tianfeiwei opened this issue Feb 4, 2020 · 1 comment
Closed

analyze() and other functions not included in psycho 0.5.0 #115

tianfeiwei opened this issue Feb 4, 2020 · 1 comment

Comments

@tianfeiwei
Copy link

I was trying to use the analyze function in psycho but r can't find the function.

library(psycho)
results <- analyze(fit)
print(results)

"Error in analyze(fit) : could not find function "analyze""

@DominiqueMakowski
Copy link
Member

DominiqueMakowski commented Feb 5, 2020

In the new version of the psycho package, many functions such as analyze() have disappeared. This is because the scope of the package was re-defined to focus more on psychology-related functions.

Regarding the function analyze(), the goal is to re-implement and improve in the report package (where is it named report()).

If you want to use analyze() to report statistical models, I would suggest to check out the report package mentioned above. However, If report is not what you need or doesn't do the job, here are some workarounds:

  • If you don't need the textual output but just the values, you can use the two functions: parameters::model_parameters() and performance::model_performance() (from the parameters and performance packages, respectively). Additionally, the effectsize package might be useful. This will give you all the required values (analyze() just used to add the text around these values).

  • If you really need analyze(), one way is to downgrade psycho, before 0.5. You can 1) remove your current installation of psycho (remove.packages("psycho)"). Then, you can install the previous release via remotes::install_github("neuropsychology/psycho.R@0.4.0")

Apologies for the inconvenience, and let me know if that helps!

PS: note that get_contrasts() and get_means() are now in the modelbased package.

@DominiqueMakowski DominiqueMakowski changed the title analyze() function is not included in psycho 0.5.0 analyze() and other functions not included in psycho 0.5.0 Feb 7, 2020
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