easystats | :milky_way: The R easystats-project | Data Visualization library
kandi X-RAY | easystats Summary
kandi X-RAY | easystats Summary
easystats is a collection of R packages, which aims to provide a unifying and consistent framework to tame, discipline, and harness the scary R statistics and their pesky models.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of easystats
easystats Key Features
easystats Examples and Code Snippets
Community Discussions
Trending Discussions on easystats
QUESTION
I have followed the code on this solution to plot multiple regressions using dot-and-whiskers, but receive the following error when trying to replicate results and when running the code with my own data and models:
...ANSWER
Answered 2021-Oct-17 at 19:24I found a solution to my own question using tidy models
, as suggested here.
QUESTION
I'm facing a strange situation when building a function that wraps lm()
. Specifically, I get an error that pertains to stats::model.frame()
when passing the function's model output to effectsize::effectsize()
.
In the following example there are two scenarios, A
and B
. In A
, I define a function that first builds a formula
object my_formula <- as.formula(paste0(y, "~", x))
and then passes it to lm()
. This function returns an object of class "lm"
. When I pass that object to effectsize::effectsize()
, I get an error:
Error in stats::model.frame(formula = my_formula, data = data_std, drop.unused.levels = TRUE) : object 'my_formula' not found
Strangely, when I pass the same object to stats::model.frame()
, it works.
In scenario B
, I build a function in which the formula is specified within lm()
, rather than a preemptive object. In that scenario, passing the output to effectsize()
works.
ANSWER
Answered 2021-Aug-15 at 15:01When you pass an lm object to effectsize(), it re-evaluates the call in your current R environment, and not in the environment where your formula variable was created, hence it throws an error since it cannot find my_formula
For stats::model.frame
, since you are passing already the lm object, it just pulls out the model matrix, no need to evaluate, you can try passing it the formula:
QUESTION
Is it possible to extract, say, a model of class glm
from a tidymodel
built with recipe
and logistic_reg() %>% set_engine("glm")
?
I'd like to use packages from the easystats
project, which require "normal", non-tidy models. The workflow extractor function (pull_workflow_fit()
) returns an object of class `"_glm" "model_fit", which doesn't seem to be compatible.
I understand I can generate a model using glm()
and the same formula as in the recipe
, but it seems to me the fitted parameters differ.
Thanks!
ANSWER
Answered 2021-Feb-04 at 23:21You can extract out the underlying model object (whether that was created by glm or ranger or keras or anything) from a parsnip object using $fit
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install easystats
Each easystats package has a different scope and purpose. This means your best way to start is to explore and pick the one(s) that you feel might be useful to you. However, as they are built with a “bigger picture” in mind, you will realize that using more of them creates a smooth workflow, as these packages are meant to work together. Ideally, these packages work in unison to cover all aspects of statistical analysis and data visualization.
report: 📜 🎉 Automated statistical reporting of objects in R
correlation: 🔗 Your all-in-one package to run correlations
modelbased: 📈 Estimate effects, group averages and contrasts between groups based on statistical models
bayestestR: 👻 Great for beginners or experts of Bayesian statistics
parameters: 📊 Obtain a table containing all information about the parameters of your models
performance: 💪 Models’ quality and performance metrics (R2, ICC, LOO, AIC, BF, …)
effectsize: 🐉 Compute, convert, interpret and work with indices of effect size and standardized parameters
insight: 🔮 For developers, a package to help you work with different models and packages
see: 🎨 The plotting companion to create beautiful results visualizations
datawizard: 🧙 Magic potions to clean and transform your data
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page