search for: forig

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

Did you mean: orig
2018 May 23
2
Recoding variables in R
Hi all, I have a very general question and I think for you maybe very easy, but I am not able to solve it. I have a dataset and that dataset contains the variable Anxiolytics. This variable is coded as 0, 1, 2. The variable looks as follows: > summary(DF$Anxiolytics) 0 1 2 NA's 1102 0 20 440 You can see that the variable is coded as 0, 1, 2, but group 1
2013 Oct 21
3
speeding up "sum of squared differences" calculation
All, I am using a sum of squared differences in the objective function of an optimization problem I am doing and I have managed to speed it up using the outer function versus the nested for loops, but my suspicion is that the calculation could be done even quicker. Please see the code below for a simple example. If anyone can point out a faster way I would appreciate it greatly. Thanks, Roger