Hello best helpers,
I am a new user and I have been struggling for hours. So finally I decide to
ask you:
If I have a matrix P, and P.2 = P%*%P, and P.3=P.2%*%P
is there a function to calculate the power of a matrix?? if not how can i do:
for (i in 1:10) {P.i=P^i}
after this I need to sum them up and my problem is to combine P and i to P.i
can anyone help me please???
Thanks and have a nice day,
Pascal.
_________________________________________________________________
[[elided Hotmail spam]]
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.