if (FALSE) {
timevar = list(difficulty = c("easy", "hard"))
repeated = list(
frustration = c("NASA1_frustration", "NASA2_frustration"),
effort = c("NASA1_effort", "NASA2_effort")
)
df.l = umx_long2wide(data, timevar, repeated, covs = c("Age"), idvar = "PID")
}
Run the code above in your browser using DataLab