search for: matirx

Displaying 15 results from an estimated 15 matches for "matirx".

2009 Jul 28
2
make one matirx in list after removing duplicated rows
...m z[1] [2,] 9 0 <---- from z[1] [3,] 10 1 <---- from z[2] [4,] 7 1 <---- from z[3] [5,] 10 1 <---- from z[3] Any comments will be greatly appreciated. Regards, Kathyrn Lord -- View this message in context: http://www.nabble.com/make-one-matirx-in-list-after-removing-duplicated-rows-tp24708937p24708937.html Sent from the R help mailing list archive at Nabble.com.
2009 Apr 11
2
who happenly read these two paper Mohsen Pourahmadi (biometrika1999, 2000)
...1 to 11,j from 1 to t-1,his model is: phi_tj=gamma1+gamma2*(t-j)+gamma3*(t-j)^2+gamma4*(t-j)^3, #biometrika 1999,page685 at first moment ,I thougt my design matrix should be 1 1 1 1 1 2 4 8 1 3 9 27..... but I found this is wrong,actually I should(I think) use a polynomial design matirx with level of 11,degree=3 here is my rocode~~ y1=c(1,0.9,0.98,1.06,0.83,1.00,0.41,0.93,1.01,0.86) y2=c(0.05,0.16,0,0.26,0.15,0.61,0.33,0.31,0.33) y3=c(-0.23,0,0.16,-0.03,0.22,-0.03,-0.17,-0.05) y4=c(0.04,-0.21,-0.04,-0.26,-0.03,-0.04,-0.05) y5=c(-0.02,-0.34,0.06,-0.22,-0.11,-0.31) y6=c(0.20,0.01,0....
2007 Aug 16
6
an easy way to construct this special matirx
Hi, Sorry if this is a repost. I searched but found no results. I am wondering if it is an easy way to construct the following matrix: r 1 0 0 0 r^2 r 1 0 0 r^3 r^2 r 1 0 r^4 r^3 r^2 r 1 where r could be any number. Thanks. Wen [[alternative HTML version deleted]]
2008 Jun 20
2
3D histogram
Hii.. Could anyone please tell me how to draw 3D histogram in R I have a 20X3 matirx. Now I want 2 of the variable on X and Y axis .And Height of the bar should denote the value of third variable. Thanx Sumit [[alternative HTML version deleted]]
2009 Mar 27
1
interactive image graphic
Dear All I want to plot a kind of figures, which can interactive with user. For example, i have a matirx which can be showed by image function. i.e. we can compare the value depend on different colors. However, the change of colors depend on the range of value. Nowaday, i want to set a bar, which can be moved by user such that the user can obtain the appropriate range. Does anyone suggest me which fun...
2010 Nov 16
1
Question about GLMER
Dear R Help, I believe the glmer() function in lme4 automatically fits an unstrucruted covariance matirx for the random effects. Is that true? If so, do I have an option to somehow ask for a diagonal structured covariance matrix? Thank you, Daniel Jeske Department of Statistics University of California -Riverside [[alternative HTML version deleted]]
2012 Jun 19
1
how to manipulate dput output format
...a matrix from dput output. It's no big deal, but the code is very 'hackish' due to the need to get rid of quotes, endlines, parenthesis, etc. I was wondering if i could manipulate to an extent dput output with some options that define it, for example, get rid of quoting each element in matirx dimnames somehow. Another great thing wiould be to make dput dump rownames and colnames on two separate lines, but i don't think it's possible. To give a specific example, instead of dput output like **new("big.matrix.descriptor" , description = structure(list(sharedType = &...
2013 Nov 01
2
computation of hessian matrix
...sponding to the total number of observations and b1 and b2 are constant.  can some one guide me or help to implement this please. I did not understand how to construct the loop which i think it should be about 3 dfferent loops example i = 1 to 29 number of matrices                 j1=1 t0 2 row of matirx                 j2= 1 to 2 ncol of matrix x1<-c(5.548,4.896,1.964,3.586,3.824,3.111,3.607,3.557,2.989,18.053,3.773,1.253,2.094,2.726,1.758,5.011,2.455,0.913,0.890,2.468,4.168,4.810,34.319,1.531,1.481,2.239,4.204,3.463,1.727) y<-c(2.590,3.770,1.270,1.445,3.290,0.930,1.600,1.250,3.450,1.096,1...
2008 Aug 04
2
thematic map of USA
My goal is to prepare a thematic map of the US, with states shaded according to their values for a variable of interest. I would like to include an inset for Alaska in the upper left and an inset for Hawaii in the lower left. If possible, I'd like to use Albers conic projection, or something similar. Thus far I have tried using the maps package with its state database (which omits
2008 Dec 26
2
about randomForest
hello, I want to use randomForest to classify a matrix which is 331030?42,the last column is class signal.I use ? Memebers.rf<-randomForest(class~.,data=Memebers,proximity=TRUE,mtry=6,ntree=200) which told me" the error is matrix(0,n,n) set too elements" then I use: Memebers.rf<-randomForest(class~.,data=Memebers,importance=TRUE,proximity=TRUE) which told me"the error is
2006 Aug 03
1
question about dll crashing R
....Call("foobar",....) once and it works fine. Absolutely correct answer. If I put a loop inside foobar and run the main code routine more than 100 times, it crashes R. Or if I call .Call("foobar"....) seperately more than two tims it crashes R. For the most part I am doing matirx multiplies using EXP matrixprod (SEXP x , SEXP y ) { int nrx , ncx , nry , ncy , mode; SEXP xdims , ydims , ans ; char *transa = "N" , *transb = "N" ; double one = 1.0 , zero = 0.0 ; xdims = getAttrib (x , R_DimSymbol ) ; ydims = getAttrib (y , R_DimSymbol ) ; mode = REALSXP; n...
2007 Sep 29
2
Help with functions (iterations)
Hello: I am a bit confused by this problem. Can anyone give me some advice on this I would greatly appreciate it. Thank you for all your help. Need to create a for loop that saves the estimate of pi from each 0f 100 separate iterations and store it in a numeric vector (of length 100). The for loop should be placed in a function that allows the user to vary the sample size, the simulation size,
2010 Dec 26
4
how to replace my double for loop which is little efficient!
Dear all, My double for loop as follows, but it is little efficient, I hope all friends can give me a "vectorized" program to replace my code. thanks x: is a matrix 202*263, that is 202 samples, and 263 independent variables num.compd<-nrow(x); # number of compounds diss.all<-0 for( i in 1:num.compd) for (j in 1:num.compd) if (i!=j) { S1<-sum(x[i,]*x[j,])
2008 Jun 18
5
Problem in Binning of a data set
Hello, I am having problem with binning the data. I have a 50X3 matrix and I binned the data for all the 3 columns. Using table command I got the total no. of elements in a particular bin. Could you please tell me how to see that what all elements are there in a particular bin and then create a different matrix for each bin? Thanks. Regards, Sumit [[alternative HTML version deleted]]
2012 Jul 20
6
Speeding up a loop
General problem: I have 20 projects that can be invested in and I need to decide which combinations meet a certain set of standards. The total possible combinations comes out to 2^20. However I know for a fact that the number of projects must be greater than 5 and less than 13. So far the the code below is the best I can come up with for iteratively creating a set to check against my set of