This is the command I want to execute with function contrast in contrast package:
> contrast(MyObject, list(Trust="T"), list(Trust="U")); As the two arguments with 'list' are defined as a string of characters, contr: > str(contr) chr "list(Trust=\"T\"),list(Trust=\"U\")" I would like to run something like > contrast(MyObject, paste(contr)) However this doesn't work since I get an error message out of this: Error in gendata.default(fit = list(modelStruct = list(reStruct = list ( : not enough factors I guess I'd have to coerce 'contr' somehow to let contrast know the two arguments instead of just one. How can I do that? Thanks in advance, Gang ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.