This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# # | |
# Excluding participants who participated in previous studies # | |
# By Arnoud Plantinga, based on Gabriele Paolacci's Excel solution # | |
# # | |
# Instructions (Note: edit only the non-indented lines): # | |
# # | |
# 1. Create a qualification (e.g., "Study 1"; keep in mind that the name # | |
# will be visible to Workers) in MTurk/Manage/Qualification Types # | |
# # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compute omega-squared and partial omega-squared | |
# By Arnoud Plantinga | |
# Based on http://stats.stackexchange.com/a/126520 | |
# Functions --------------------------------------------------------------- | |
# Omega-squared | |
Omegas <- function(mod){ | |
aovMod <- mod | |
if(!any(class(aovMod) %in% 'aov')) aovMod <- aov(mod) |