search for: decreaces

Displaying 2 results from an estimated 2 matches for "decreaces".

2012 Nov 16
1
Code works, but not as function.
...er number 1. for(i in Effectors[[l]]){ # Begin loop through all effector values. l2 <-l2+1 # Increace counter number 2. if(runif(1) < 0.9) ifelse(runif(1) <0.5, Effectors[[l]][l2] <- Effectors[[l]][l2]+1, Effectors[[l]][l2] <- Effectors[[l]][l2]-1) # Line which increaces or decreaces the values in the list element (50/50 chance of increace or decreace), if the first IF statement is satisfied. } } Now I don't know if this is the best and most R-ish way of doing this, but it works and I understand it. However I'd like to define a function with this, my attempts so far...
2011 Jan 06
1
Splitting a Vector
Hi all, I read in a text book, that you can examine a variable that is colinear with others, and giving different ANOVA output and explanatory power when ordered differently in the model forula, by modelling that explanatory variable, against the others colinear with it. Then, using that information to split the vector (explanatory variable) in question, into two new vectors, one should