I am trying to apply bootstrapping to my dataset, as my data is not normally distributed therefore, I would like to run my statistics with bootstrapping.
The bootstrapping bit worked just fine. I did this from the package tidyverse:
set.seed(123)
dataA.boot<-bootstraps(allA,times=1000,apparent=TRUE)
In the next step, when applying my model (a function called anova_test from the package rstatix) to the bootstrapping:
dataA.boot %>%
mutate(model=map(splits,~anova_test(
data=.,dv=fitA,wid=subject,between=c(exp),
within=c(Oddball,PvN))),
coef_info=map(model,tidy))
I get the error:
Error: Problem with mutate()
input model
.x Can't subset columns that don't exist.
x Column fitA
doesn't exist.
Input
model
is map(...)
.
FitA is a column in my original dataset, which should also be within the bootstrapped data. I'd be really greatful if you could point me into how to fix this error.
Thank you very much!