search for: rebecca0420

Displaying 4 results from an estimated 4 matches for "rebecca0420".

2012 Apr 26
3
repeat matrix rows as a whole
Hi, If I have a matrix like 1  2  3  4 5  6  7  8, how can I repeat two rows as whole, to be like 1  2  3  4 5  6  7  8 1  2  3  4 5  6  7  8?   Since I have more two rows in a matrix and I need to repeat many times, I wonder whether there is a convenient command to do so.   Thanks! [[alternative HTML version deleted]]
2012 Apr 26
2
reorder a matrix
Hi, Here are part of my data, > pr16.5    origin dest ldco time.slot distortion 1       1    1    1         1        4.3 2       1    1    1         2        4.7 3       1    1    1         3        5.6 4       1    1    1         4        7.7 5       1    1    2         1        6.8 6       1    1    2         2        7.6 7       1    1    2         3        9.2 8       1    1   
2012 Apr 27
2
find the eigenvector corresponding to the largest eigenvalue
Hi, If I use the eigen() function to find the eigenvalues of a matrix, how can I find the eigenvector corresponding to the largest eigen value? Thanks! [[alternative HTML version deleted]]
2012 Dec 06
1
bootstrap based confidence band
I'm trying to find a bootstrap based confidence band for a linear model. I have created a data set with X and Y X=runif(n,-1.25,1.25) e=rnorm(n,0,1) Y=exp(3*X)+5*sin((30*X)/(2*pi))+2*e fit=lm(Y~X) summary(fit)   I define a bootstrap function named PairedBootstrap which is not listed here. Than I try many ways to find the confidence band. One way is to predict Y using the model I get above for