rauschenberger / starnet

@@ -84,14 +84,14 @@
Loading
84 84
#' 
85 85
#' @examples
86 86
#' set.seed(1)
87 -
#' n <- 40; p <- 50
87 +
#' n <- 50; p <- 100
88 88
#' y <- rnorm(n=n)
89 89
#' X <- matrix(rnorm(n*p),nrow=n,ncol=p)
90 90
#' object <- starnet(y=y,X=X,family="gaussian")
91 91
#' 
92 92
starnet <- function(y,X,family="gaussian",nalpha=21,alpha=NULL,nfolds=10,foldid=NULL,type.measure="deviance",alpha.meta=1,penalty.factor=NULL,intercept=NULL,upper.limit=NULL,unit.sum=NULL,...){
93 93
  
94 -
  if(is.na(alpha.meta) & (!"CVXR" %in% .packages(all.available=TRUE))){
94 +
  if(is.na(alpha.meta) && (!"CVXR" %in% .packages(all.available=TRUE))){
95 95
    stop("Install CVXR from CRAN for alpha.meta=NA.",call.=FALSE)
96 96
  }
97 97
  
@@ -317,7 +317,7 @@
Loading
317 317
#' 
318 318
#' @examples
319 319
#' set.seed(1)
320 -
#' n <- 40; p <- 50
320 +
#' n <- 50; p <- 100
321 321
#' y <- rnorm(n=n)
322 322
#' X <- matrix(rnorm(n*p),nrow=n,ncol=p)
323 323
#' object <- starnet(y=y,X=X)
@@ -385,7 +385,7 @@
Loading
385 385
#' 
386 386
#' @examples
387 387
#' set.seed(1)
388 -
#' n <- 40; p <- 50
388 +
#' n <- 50; p <- 100
389 389
#' y <- rnorm(n=n)
390 390
#' X <- matrix(rnorm(n*p),nrow=n,ncol=p)
391 391
#' object <- starnet(y=y,X=X)
@@ -447,7 +447,7 @@
Loading
447 447
#' 
448 448
#' @examples
449 449
#' set.seed(1)
450 -
#' n <- 40; p <- 50
450 +
#' n <- 50; p <- 100
451 451
#' y <- rnorm(n=n)
452 452
#' X <- matrix(rnorm(n*p),nrow=n,ncol=p)
453 453
#' object <- starnet(y=y,X=X)
@@ -481,7 +481,7 @@
Loading
481 481
#' 
482 482
#' @examples
483 483
#' set.seed(1)
484 -
#' n <- 40; p <- 50
484 +
#' n <- 50; p <- 100
485 485
#' y <- rnorm(n=n)
486 486
#' X <- matrix(rnorm(n*p),nrow=n,ncol=p)
487 487
#' object <- starnet(y=y,X=X)
Files Coverage
R/functions.R 49.59%
Project Totals (1 files) 49.59%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading