[R] return one vector that is the sum of a list of vectors

2012-04-08 Thread Frank Tamborello
r the numeric vectors that those character vectors are ultimately supposed to name. It seems like I should be able to map the primitive "+" operator onto a list or vector that contains the variable names. If that's a good way to go, what would that look like? Or if that's not

Re: [R] conditional value assignment

2011-02-14 Thread Frank Tamborello
t; I can feed to sapply. I suspect there must be a simple solution but I cannot > seem to get either incantation to perform the assignment. What would be a > good way to do this? > > Example data: > TargetColor.1.18 CannonOriB.1.18 "CannonOriR.1.1 > "B"

[R] conditional value assignment

2011-02-14 Thread Frank Tamborello
do this? Example data: "TargetColor.1.18." "CannonOriB.1.18." "CannonOriR.1.18." "B" 5 3 "R" 5 3 Example assignment of tco "tco" 5 3 Thanks much! Frank Tamborello, PhD W. M. Keck Postdoctoral Fellow Scho

Re: [R] transposing data

2010-03-07 Thread Frank Tamborello
ems to lead to exactly that I was looking for. Thanks, Phil! On Mar 5, 2010, at 10:05 PM, Frank Tamborello wrote: > Frank - > I think you need to create a composite time variable > to do what you want to do: > > exp1.r5$key = with(exp1.r5,paste(CannonAngle,CannonOriB, >

[R] transposing data

2010-03-05 Thread Frank Tamborello
he variables I want. Instead what I want is Subject plus up to 1,008 variables encoding RT at every combination of CannonAngle, CannonOriB, CannonOriR, nRedPelelts, TargetColor, and tbearing that occurred. Is that something the reshape function can give me or should I be looking elsewhere?

Re: [R] tests for measures of influence in regression

2010-02-22 Thread Frank Tamborello
Thank you, Wolfgang! Now that I know what the function does I can at least search some literature to learn about those criteria. Thanks, Frank Tamborello On Feb 22, 2010, at 7:00 AM, Viechtbauer Wolfgang (STAT) wrote: I don't think this information can be found in the documentation,

[R] tests for measures of influence in regression

2010-02-21 Thread Frank Tamborello
ns by each of the measures? Like does it do a Bonferroni-corrected t on the residuals identified by the influence measures or some other test? Cheers, Frank Tamborello, PhD W. M. Keck Postdoctoral Fellow School of Health Information Sciences University of Texas Health Science Center, Ho