search for: decreace

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

Did you mean: 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
..., you can see how much explanatory power the othogonal part of the order dependent variable has, at different orders, and in principle it shouldn't change, but the vector made from the part co-aligned with the co-variates, will change as the order changes - it's explanatory power should decreace in ANOVA is it moves away from being the first explanatory variable in the model. Obviously finding the fitted model values and residual required to split the vector in two is a simple lm() with the right variables. But how would I create two new vectors from this and append them to my datafra...