Displaying 1 result from an estimated 1 matches for "mufun3".
Did you mean:
mufu
2011 Sep 01
1
vector output loop or function
..., X3, X4, X5, X6, X7, X8, X9, X10)
The basic idea is the X2 is like X1 but is different at two positions where
the normal value is replaced with 5, the position is defined by cv1 . The
process is repeated till the last variable.
I tried several way. One of unsuccessful function:
v = 2:10
mufun3 <- function(v, x){
x[,v] <- x[,v-1]
cv1 <- round(runif(3, 1, 10))
}
mufun3 (v, X1)
Thank you for the help
NIL
[[alternative HTML version deleted]]