search for: 5x2

Displaying 9 results from an estimated 9 matches for "5x2".

Did you mean: 52
2015 Apr 09
3
Dimensiones arreglo.-
...que no conocía. Me pregunto si es algo de esperar. Es lo siguiente. Supongamos el siguiente arreglo: arreglo <- array(runif(10*2*2), dim=c(10, 2, 2)) # dim: 10x2x2 y que sobre él selecciono las primeras 5 filas (o las primero 5 líneas de la primera dimensión, no sé): arreglo[1:5, , ] # dim: 5x2x2 Pero si ahora hago lo propio con un arreglo como el que sigue: arreglo <- array(runif(10*1*2), dim=c(10, 1, 2)) me encuentro con estas dimensiones: arreglo[1:5, ,] # dim: 5x2 Naturalmente, esto producía inconsistencias en mi código. Ideé un condicional para el caso en el que la segunda d...
2011 Apr 03
2
:HELP
...f matrix. But I don't calculate with "apply" function. &nbsp; skwkrt&lt;-function(N=10000,mu=0,sigma=1,n=100, nboot=1000,alpha=0.05){ x&lt;-rnorm(N,mu,sigma)#population samplex&lt;-matrix(sample(x,n*nboot,replace=T),nrow=nboot) #... } &nbsp; is that: suppose a is a 5x2 matrix. &nbsp;a={1,2,3,4,5 6,7,8,9,10} &nbsp; I want to sum first three terms. sm[1]=1+2+3 sm[2]=6+7+8 But I don't calculate. please help me!!! [[alternative HTML version deleted]]
2004 Sep 02
1
Question on survey package
Is there a way to use one of the functions in the survey package to get a table of estimated percentages (or proportions) and the standard error for each? For example, suppose that AGECODE AND SEX are two factors with 5 and 2 levels. The 5x2 AGECODE x SEX table would have the estimated percentage of persons in each cell, 100*(sum of weights in the cell) / (sum of all weights) and the std error of the percentage. The std error would have to be computed by linearization or replication since the denominator of each percentage is an e...
2007 Mar 07
2
where can I find Durbin-Waston test tables for Confidence Level 2.5% or 0.5%?
...g a two-sided DW test: H0: rho = 0 H1: rho =/= 0 My understanding is that most test statistics tables are one-sided. It's the way they created the table. So from online, by doing Googling, I found a bunch of DW tables for Confidence Level 5%. Those tables can answer my two-sided question at 5x2 = 10% confidence level. But what if I want two-sided test at 1% and 5% confidence level? Then I need 0.5% and 2.5% tables on those one-sided table. My sample size is 278, and the number of parameters is 2, these adds to the hardship of finding a good table... Could anybody give me some pointers...
2023 Apr 12
1
Matrix scalar operation that saves memory?
...as a vector. Define a C++ function which operates on a vector in place, as in the following: library(Rcpp) cppFunction( 'void subtractConst(NumericVector x, double c) { for ( int i = 0; i < x.size(); ++i) x[i] = x[i] - c; }') Try this function out on a matrix. Here we define a 5x2 matrix m <- matrix(150.5 + 1:10, nrow=5) print(m) [,1] [,2] [1,] 151.5 156.5 [2,] 152.5 157.5 [3,] 153.5 158.5 [4,] 154.5 159.5 [5,] 155.5 160.5 Now call the C++ function subtractConst(m,100.0) print(m) [,1] [,2] [1,] 51.5 56.5 [2,] 52.5 57.5 [3,] 53.5 58.5 [4,] 54.5 59.5 [5,] 55...
2023 Apr 12
1
Matrix scalar operation that saves memory?
I doubt that R's basic matrix capabilities can handle this, but have a look at the Matrix package, especially if your matrix is some special form. Bert On Tue, Apr 11, 2023, 19:21 Shunran Zhang <szhang at ngs.gen-info.osaka-u.ac.jp> wrote: > Hi all, > > I am currently working with a quite large matrix that takes 300G of > memory. My computer only has 512G of memory. I
2002 Jun 19
3
unexpected results
Is R behaving correctly in this example? I do not understand why column 2 has any 2s in it (and why column 3 has any 1s) > x<-matrix(0,10,3) > x[seq(1,10,by=2),2:3]<-c(1,2) > x [,1] [,2] [,3] [1,] 0 1 2 [2,] 0 0 0 [3,] 0 2 1 [4,] 0 0 0 [5,] 0 1 2 [6,] 0 0 0 [7,] 0 2 1 [8,] 0 0 0 [9,] 0 1
2006 Mar 15
0
Samba + Cups -> PPD Options problem - 1 attachment
...]/3T]/3T]/3T]/3T]/3T]/3T]#0H-"BHE/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T@0V]N<W1R86EN<R!F;W(@ M*D-87T,R1%]-961I851Y<&4@2&5A=GEW96EG:'0R7S(R,0T**E5)0V]N<W1R M86EN=',Z("I#6%]#,D1?365D:6%4>7!E($AE879Y=V5I9VAT,E\R,C$@*D-8 M7T,R1%]-971H;V0@1'5P;&5X2&5A9`T**E5)0V]N<W1R86EN=',Z("I#6%]# M,D1?365D:6%4>7!E($AE879Y=V5I9VAT,E\R,C$@*D-87T,R1%]-971H;V0@ M1'5P;&5X5&]E#0HJ54E#;VYS=')A:6YT<SH@*D-87T,R1%]-961I851Y<&4@ M2&5A=GEW96EG:'0R7S(R,2`J0UA?0S)$7T9A8V55<"!&86-E1&]W;@T**E5) M0V]N<...
2006 Jul 17
28
Big JBOD: what would you do?
ZFS fans, I''m preparing some analyses on RAS for large JBOD systems such as the Sun Fire X4500 (aka Thumper). Since there are zillions of possible permutations, I need to limit the analyses to some common or desirable scenarios. Naturally, I''d like your opinions. I''ve already got a few scenarios in analysis, and I don''t want to spoil the brain storming, so