search for: resid_value1

Displaying 1 result from an estimated 1 matches for "resid_value1".

Did you mean: resid_value2
2011 Oct 24
1
Creating data frame with residuals of a data frame
...4 -7.684729 1.724138 $value2 1 2 3 4 5 7 -0.37398374 1.50406504 -1.98373984 0.52845528 0.28455285 0.04065041 I am trying to get both the original variable and their residuals in the same data frame like this: age, value1, value2, resid_value1, resid_value2 But when I try cbind or other operations I get an error message because they do not have the same number of rows. Can you please help me figure out how to solve this? Thank you.