search for: 1x20

Displaying 4 results from an estimated 4 matches for "1x20".

Did you mean: 0x20
2009 Sep 20
2
missing level of a nested factor results in an NA in lm output
...27:GROUP1' = 0.5, 'FEATURE6374:GROUP1' = 0.5, 'GROUP0:PATIENT2' = 1 ) rownames(myEstimate) <- "test" > estimable(fit, myEstimate) Error in estimable.default(fit, myEstimate) : Dimension of structure(c(1, 0, 0, 1, 0, 0, 0, 0.5, 0.5, 0, 0, 0, 0, 0, 0, : 1x20, not compatible with no of parameters in fit: 19 Dimension of 1, 0, 0, 0, 0), .Dim = c(1L, 20L), .Dimnames = list("test", c("(Intercept)", : 1x20, not compatible with no of parameters in fit: 19 Dimension of "FEATURE4227", "FEATURE6374", "GROUP1&...
2009 Jun 23
2
Partitioning matrix
Let say, I have following matrix : dat <- matrix(rnorm(40), 2, 20) Now I want to partition this like this : dat1 <- dat[1,] dat2 <- dat[2,] But point is that, dat1 and dat2 become vector object. How can I force them to be matrix object with dimension (1x20) ? Thanks, -- View this message in context: http://www.nabble.com/Partitioning-matrix-tp24161021p24161021.html Sent from the R help mailing list archive at Nabble.com.
2009 Sep 28
1
plot error -- figure margins too large
...up IDs. The set is similar to the following df. df <- NULL for ( i in 1:20) { tmp1 <- runif(1000,0,5) tmp2 <- cbind(tmp1,i) df <- rbind(df,tmp2) } Now I would like to plot the numeric column, stratified by the group IDs, in a single figure. First, I partitioned the frame into a 1x20 array. Then I plot the numeric values of each group in a sub-plot. Note that only should the left most y-axis be shown, and the x-axis is only the group numbers. Also the margin between two sub-frame should be fairly small so it looks like only one figure, rather than 20 figures. The following cod...
2023 Aug 06
2
Stacking matrix columns
I wish to stack columns of a matrix into one column. The following matrix command does it. Any other ways? Thanks. > x<-matrix(1:20,5,4) > x ???? [,1] [,2] [,3] [,4] [1,]??? 1??? 6?? 11?? 16 [2,]??? 2??? 7?? 12?? 17 [3,]??? 3??? 8?? 13?? 18 [4,]??? 4??? 9?? 14?? 19 [5,]??? 5?? 10?? 15?? 20 > matrix(x,ncol=1) ????? [,1] ?[1,]??? 1 ?[2,]??? 2 ?[3,]??? 3 ?[4,]??? 4 ?[5,]??? 5