search for: formulaeq2

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

Did you mean: formulaeq3
2011 Jun 23
0
Loops, Paste, Apply? What is the best way to set up a list of many equations?
...?## generate variablesnames(YX) <-c(paste("Y", 1:4, sep=""), ? ? ? ? ? ? ? ? ?## assign Y variables' names? ? ? ? ? ? ? paste("X", 1:10, sep="")) ? ? ? ? ? ? ? ? ## assign X variables' names EQ1 <- Y1 ~ X1 + X2 + X4 + X7 + X10 ? ? ?## equation 1 formulaEQ2 <- Y2 ~ X2 + X3 + X5 + X8 + X10 ? ? ?## equation 2 formulaEQ3 <- Y3 ~ X5 + X6 + X7 + X9 ? ? ? ? ? ?## equation 3 formulaEQ4 <- Y4 ~ X1 + X3 + X4 + X6 + X9 ? ? ? ## equation 4 formula ## VERSION 1 FOR SETTING UP THE LIST:V1system <-list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)...