Skip to content

Instantly share code, notes, and snippets.

@arnoud999
arnoud999 / MTurk update workerlist.R
Created June 10, 2015 14:28
Excluding MTurk workers who participated in your previous studies: An R solution
############################################################################
# #
# 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 #
# #
@arnoud999
arnoud999 / Calculate omega-squared in R.R
Last active November 3, 2022 06:51
Calculate omega-squared in R
# 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)