Comments (6)
Fixed version (0.18-0) is on CRAN now: https://cran.r-project.org/web/packages/afex/
from afex.
Thanks for this report, this is most likely due to the changes in 134afd6. Paging @jonathon-love who made this changes.
Are you willing to remove the bug you introduced (I guess)?
See:
require(psych)
require(afex)
data(msq)
aov_ez(data=msq, dv="Extraversion", id = "ID", between = "condition",
covariate=c("TOD", "MSQ_Time"), factorize=FALSE, print.formula = TRUE)
# Formula send to aov_car: Extraversion ~ condition + `TOD+MSQ_Time` + Error(ID)
# Error in `[.data.frame`(data, , between, drop = FALSE) :
# undefined columns selected
from afex.
sure, i'll take a look.
cheers
from afex.
@jonathon-love Actually hold on. I think I got it, seems really minor.
from afex.
yup, i think it's as simple as moving line 415:
if (!is.null(covariate)) covariate <- str_c(covariate, collapse = "+")
down after where the covariates are escaped?
covariate <- escape_vars(covariate)
from afex.
Solved in ccada51.
My change was similar to what you suggested:
if (!is.null(covariate)) {
covariate <- escape_vars(covariate)
covariate <- str_c(covariate, collapse = "+")
}
I will push a new bug-free version to CRAN latest next week. Thanks for reporting the bug.
from afex.
Related Issues (20)
- error for running mixed() with a null model (no fixed effect) HOT 1
- Understanding inconsistencies between `aov_car()` and equivalents HOT 1
- Adding geoms to `afex_plot()` HOT 5
- Degree of Freedom in aov_car output HOT 3
- Can aov_car report 95% confidence interval? HOT 6
- Unexpected outcomes when setting contrasts manually HOT 3
- Anova table data heading incorrect HOT 2
- Issues with next version of ggplot2 HOT 2
- [Feature request] Add ability to automatically simplify mixed models following Singman and Kellen (2019)
- Residuals with `mixed`-fitted model HOT 3
- Issue with next version of ggbeeswarm HOT 1
- Bump minimum needed R version to `4.1` for `{pbkrtest}` update?
- Issue with upcoming ggplot2 version HOT 3
- [Sugestion] MMRM (GLS) for Afex: Kenward-Roger and Satterthwaite for free :) HOT 1
- Error in ctrl$optimizer <- optimizer[..i] : object of type 'symbol' is not subsettable
- emmeans gives wrong results for afex_aovs if the at = argument is reversed HOT 1
- Centering Covariate Still Throws Error HOT 5
- Printing method for `nice` collides with `rempsyc::nice_table()` of class `nice_table` HOT 2
- different residuals HOT 3
- glmmTMB updates break some things HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afex.