search for: mrow

Displaying 12 results from an estimated 12 matches for "mrow".

Did you mean: grow
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
....g., adding a start of 1 to the data), the following works for me: ------ snip ------ > library(MASS) > BoxCoxLambda <- function(z){ + b <- boxcox(z + 1 ~ 1, + lambda = seq(-5, 5, length.out = 101), + plotit = FALSE) + b$x[which.max(b$y)] + } > mrow <- 500 > mcol <- 2 > set.seed(12345) > dd <- matrix(rgamma(mrow*mcol, shape = 2, scale = 5), nrow = mrow, ncol = + mcol) > dd1 <- dd[, 1] # 1st column of dd > res <- boxcox(lm(dd1 + 1 ~ 1), lambda = seq(-5, 5, length.out = 101), plotit +...
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
...(MASS) >> >> # Find optimised Lambda for Boc-Cox transformation >> BoxCoxLambda <- function(z){ >> b <- boxcox(lm(z+1 ~ 1), lambda = seq(-5, 5, length.out = 61), plotit >> = FALSE) >> b$x[which.max(b$y)] # best lambda >> } >> >> mrow <- 500 >> mcol <- 2 >> set.seed(12345) >> dd <- matrix(rgamma(mrow*mcol, shape = 2, scale = 5), nrow = mrow, ncol = >> mcol) >> >> # Try it not using the BoxCoxLambda function: >> dd1 <- dd[,1] # 1st column of dd >> bb <- boxcox(lm(dd1+...
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
...or me: > > ------ snip ------ > > > library(MASS) > > > BoxCoxLambda <- function(z){ > + b <- boxcox(z + 1 ~ 1, > + lambda = seq(-5, 5, length.out = 101), > + plotit = FALSE) > + b$x[which.max(b$y)] > + } > > > mrow <- 500 > > mcol <- 2 > > set.seed(12345) > > dd <- matrix(rgamma(mrow*mcol, shape = 2, scale = 5), nrow = mrow, ncol = > + mcol) > > > dd1 <- dd[, 1] # 1st column of dd > > res <- boxcox(lm(dd1 + 1 ~ 1), lambda = seq(-5, 5, leng...
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
...t;> > library(MASS) >> >> > BoxCoxLambda <- function(z){ >> + b <- boxcox(z + 1 ~ 1, >> + lambda = seq(-5, 5, length.out = 101), >> + plotit = FALSE) >> + b$x[which.max(b$y)] >> + } >> >> > mrow <- 500 >> > mcol <- 2 >> > set.seed(12345) >> > dd <- matrix(rgamma(mrow*mcol, shape = 2, scale = 5), nrow = mrow, ncol = >> + mcol) >> >> > dd1 <- dd[, 1] # 1st column of dd >> > res <- boxcox(lm(dd1 +...
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
...something silly, but I can't see what it is. Any help appreciated. library(MASS) # Find optimised Lambda for Boc-Cox transformation BoxCoxLambda <- function(z){ b <- boxcox(lm(z+1 ~ 1), lambda = seq(-5, 5, length.out = 61), plotit = FALSE) b$x[which.max(b$y)] # best lambda } mrow <- 500 mcol <- 2 set.seed(12345) dd <- matrix(rgamma(mrow*mcol, shape = 2, scale = 5), nrow = mrow, ncol = mcol) # Try it not using the BoxCoxLambda function: dd1 <- dd[,1] # 1st column of dd bb <- boxcox(lm(dd1+1 ~ 1), lambda = seq(-5, 5, length.out = 101), plotit = FALSE) print(pa...
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
...> appreciated. > > library(MASS) > > # Find optimised Lambda for Boc-Cox transformation > BoxCoxLambda <- function(z){ > b <- boxcox(lm(z+1 ~ 1), lambda = seq(-5, 5, length.out = 61), plotit > = FALSE) > b$x[which.max(b$y)] # best lambda > } > > mrow <- 500 > mcol <- 2 > set.seed(12345) > dd <- matrix(rgamma(mrow*mcol, shape = 2, scale = 5), nrow = mrow, ncol = > mcol) > > # Try it not using the BoxCoxLambda function: > dd1 <- dd[,1] # 1st column of dd > bb <- boxcox(lm(dd1+1 ~ 1), lambda = seq(-5, 5, leng...
2013 Mar 06
1
red SNA
...;,'Tom','Mary','Mary'), group = c('a','b','c','a','b','c','d','b','d'), stringsAsFactors = F) df m = table( df ) M = as.matrix( m ) # o M = as.matrix( table(df) ) Mrow = M %*% t(M) Mrow Mcol = t(M) %*% M Mcol df_yo <- data.frame( person = c('Sam','Sam','Sam','Greg','Tom','Tom','Tom','Mary','Mary'), group = c('a','b','c','a','b',...
2009 Jul 26
2
More complicated multi-plot layouts?
...plots sort of like how I'd like to make a new plot. Hopefully it will get through to the list. Is there a way to do this directly using par somehow? Or one of the other plotting packages? Basically, multiple larger plot above multiple groups of smaller plots? The smaller plots are just par(mrow=c(2,3)) things, and I can certainly do 2,6 for something wider like this demo but I'm not clear how to specify an area for larger plots above. Is it possible? Thanks, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: DemoPlot.png Type: image/png Size: 538...
2013 Nov 22
2
[LLVMdev] new dragonegg 3.4 warning on darwin12
...xpa.c:226:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] exit(6); ^ himenoBMTxpa.c: In function ‘newMat’: himenoBMTxpa.c:239:5: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] malloc(mnums * mrows * mcols * mdeps * sizeof(float)); ^ himenoBMTxpa.c: In function ‘clearMat’: himenoBMTxpa.c:248:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default] free(Mat->m); ^ '-cmpxchg16b' is not a recognized feature for this target (ignorin...
2013 Nov 22
0
[LLVMdev] new dragonegg 3.4 warning on darwin12
...ompatible implicit declaration of built-in function ‘exit’ [enabled by default] > exit(6); > ^ > himenoBMTxpa.c: In function ‘newMat’: > himenoBMTxpa.c:239:5: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] > malloc(mnums * mrows * mcols * mdeps * sizeof(float)); > ^ > himenoBMTxpa.c: In function ‘clearMat’: > himenoBMTxpa.c:248:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default] > free(Mat->m); > ^ > '-cmpxchg16b' is not a recognized fe...
2012 Jan 08
2
need help with axis ticks
hi, i am using par(mrow=c(6,6)) function to get 6x6 plots on one screen. the problem that i am having is that the axis tick labels are far away from the ticks and going into previous plots (see attached figure). i need to know how can i reduce the distance between the ticks and their values (y axis values).the part of the...
2005 Aug 24
1
extra parentheses cause death of kernel (PR#8094)
...and line interpreter (but it does still show you command line completions on the bottom of the window). The only exception I've found is when there is no character string at all before the opening parenthesis. Then you can type as quickly as you want with no ill effects. -- Mickey Rowe (mrowe at lifesci.ucsb.edu)