Skip to content

Commit beed02a

Browse files
author
tnagler
committed
reduce example runtime
1 parent 2e0406c commit beed02a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

R/cpit.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#' set.seed(1)
1515
#' }
1616
#' # simulate data
17-
#' x <- matrix(rnorm(500), 250, 2)
17+
#' x <- matrix(rnorm(200), 100, 2)
1818
#' y <- x %*% c(1, -2)
19-
#' dat <- data.frame(y = y, x = x, z = as.factor(rbinom(250, 2, 0.5)))
19+
#' dat <- data.frame(y = y, x = x, z = as.factor(rbinom(100, 2, 0.5)))
2020
#'
2121
#' # fit vine regression model
2222
#' fit <- vinereg(y ~ ., dat)
@@ -44,9 +44,9 @@ cpit <- function(object, newdata, cores = 1) {
4444
#' set.seed(1)
4545
#' }
4646
#' # simulate data
47-
#' x <- matrix(rnorm(500), 250, 2)
47+
#' x <- matrix(rnorm(200), 100, 2)
4848
#' y <- x %*% c(1, -2)
49-
#' dat <- data.frame(y = y, x = x, z = as.factor(rbinom(250, 2, 0.5)))
49+
#' dat <- data.frame(y = y, x = x, z = as.factor(rbinom(100, 2, 0.5)))
5050
#'
5151
#' # fit vine regression model
5252
#' fit <- vinereg(y ~ ., dat)
@@ -81,9 +81,9 @@ cll <- function(object, newdata, cores = 1) {
8181
#' set.seed(1)
8282
#' }
8383
#' # simulate data
84-
#' x <- matrix(rnorm(500), 250, 2)
84+
#' x <- matrix(rnorm(200), 100, 2)
8585
#' y <- x %*% c(1, -2)
86-
#' dat <- data.frame(y = y, x = x, z = as.factor(rbinom(250, 2, 0.5)))
86+
#' dat <- data.frame(y = y, x = x, z = as.factor(rbinom(100, 2, 0.5)))
8787
#'
8888
#' # fit vine regression model
8989
#' fit <- vinereg(y ~ ., dat)

man/cll.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cpdf.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cpit.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)