Displaying 1 result from an estimated 1 matches for "x1_10".
Did you mean:
x110
2008 Sep 06
1
loop
I have to calculate a formula that gives me a ten components vector. I want
to see how the components behave at varying the variable i.
But when i run the following function:
> bbayes<-c()
> for(i in 1:100) {
+ xx<-t(X1_10)%*%X1_10
+ xxmeno1<-solve(xx)
+ V<-xxmeno1*i
+ Vmeno1<-solve(V)
+ tx<-t(X1_10)
+ prpar<-solve(Vmeno1+xx)
+ snpar<-tx%*%y
+ bbayes<-prpar%*%snpar
+ }
it oly gives me the vector calculated with the last value of the sequence,
in this case 100.
Could you please suggest how to pri...