diff --git a/README.md b/README.md index f7eded0b..3db57215 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Cyclops ======= [![Build Status](https://github.com/ohdsi/Cyclops/workflows/R-CMD-check/badge.svg)](https://github.com/OHDSI/Cyclops/actions?query=workflow%3AR-CMD-check) -[![codecov.io](https://app.codecov.io/github/OHDSI/Cyclops/coverage.svg?branch=main)](https://app.codecov.io/github/OHDSI/Cyclops?branch=main) +[![codecov.io](https://codecov.io/github/OHDSI/Cyclops/coverage.svg?branch=main)](https://codecov.io/github/OHDSI/Cyclops?branch=main) [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/Cyclops)](https://CRAN.R-project.org/package=Cyclops) [![CRAN_Status_Badge](https://cranlogs.r-pkg.org/badges/Cyclops)](https://cran.r-project.org/package=Cyclops) diff --git a/docs/404.html b/docs/404.html index bd75ee9e..01baf29a 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1,66 +1,27 @@ - - - - + + + + - Page not found (404) • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - -
-
- + +
+ + + - - -
+
+
-
+ + - - diff --git a/docs/authors.html b/docs/authors.html index 27d243a5..fffc6264 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -1,66 +1,12 @@ - - - - - - - -Citation and Authors • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Authors and Citation • Cyclops - - + + - - -
-
- -
- -
+
-
-
- +
- - + + diff --git a/docs/index.html b/docs/index.html index fcfd38ef..660ec66e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,6 +24,8 @@ + +
-
- - -

Cyclops is part of the HADES.

-
-
-

-Introduction

+
+ +

Build Status codecov.io CRAN_Status_Badge CRAN_Status_Badge

+

Cyclops is part of the HADES.

+
+
+

Introduction +

Cyclops (Cyclic coordinate descent for logistic, Poisson and survival analysis) is an R package for performing large scale regularized regressions.

-
-

-Features

+
+

Features +

  • Regression of very large problems: up to millions of observations, millions of variables
  • Supports (conditional) logistic regression, (conditional) Poisson regression, as well as (conditional) Cox regression
  • @@ -101,78 +97,69 @@

  • Efficient estimation of confidence intervals for a single variable using a profile-likelihood for that variable
-
-

-Examples

+
+

Examples +

-  library(Cyclops)
-  cyclopsData <- createCyclopsDataFrame(formula)
-  cyclopsFit <- fitCyclopsModel(cyclopsData)
+ library(Cyclops) + cyclopsData <- createCyclopsDataFrame(formula) + cyclopsFit <- fitCyclopsModel(cyclopsData)
-
-

-Technology

+
+

Technology +

Cyclops in an R package, with most functionality implemented in C++. Cyclops uses cyclic coordinate descent to optimize the likelihood function, which makes use of the sparse nature of the data.

-
-

-System Requirements

-

Requires R (version 3.1.0 or higher). Compilation on Windows requires RTools >= 3.4.

+
+

System Requirements +

+

Requires R (version 3.1.0 or higher). Compilation on Windows requires RTools >= 3.4.

-
-

-Installation

+
+

Installation +

In R, to install the latest stable version, install from CRAN:

-install.packages("Cyclops")
+install.packages("Cyclops")

To install the latest development version, install from GitHub. Note that this will require RTools to be installed.

-install.packages("devtools")
-devtools::install_github("OHDSI/Cyclops")
-
-
-

-User Documentation

-

Documentation can be found on the package website.

-

PDF versions of the documentation are also available:

+install.packages("devtools") +devtools::install_github("OHDSI/Cyclops")
+
+
+

User Documentation +

+

Documentation can be found on the package website.

+

PDF versions of the documentation are also available: * Package manual: Cyclops manual

+
+
+

Support +

-
-

-Support

- +
+

Contributing +

+

Read here how you can contribute to this package.

-
-

-Contributing

-

Read here how you can contribute to this package.

-
-
-

-License

+
+

License +

Cyclops is licensed under Apache License 2.0. Cyclops contains the TinyThread libray.

-

The TinyThread library is licensed under the zlib/libpng license as described here.

+

The TinyThread library is licensed under the zlib/libpng license as described here.

-
-

-Development

+
+

Development +

Cyclops is being developed in R Studio.

-
-

-Development status

-

Beta

-
-
-

-Acknowledgements

+
+

Acknowledgements +

  • This project is supported in part through the National Science Foundation grants IIS 1251151 and DMS 1264153.
@@ -182,32 +169,32 @@

+ + +

-

Site built with pkgdown 1.6.1.

+

+

Site built with pkgdown 2.0.7.

@@ -246,5 +228,7 @@

Dev status

+ + diff --git a/docs/news/index.html b/docs/news/index.html index 3f0bc1cf..c6ee3bab 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -1,66 +1,12 @@ - - - - - - - -Changelog • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Changelog • Cyclops - + + - - - -
-
- -
- -
+
-
-

-Cyclops v3.1.2 2021-06-16 -

-

Changes:

-
    -
  1. adaptive likelihood profiling when objective function is concave.
  2. -
-
-
-

-Cyclops v3.1.1 2021-03-23 -

+
+

Changes:

-
    -
  1. specify new option nocenter in survival package when testing predicted hazard function
  2. -
-
-
-

-Cyclops v3.1.0 2020-11-05 -

+
  1. remove dependence on BH +
  2. +
  3. improvements on adaptive likelihood profiling
  4. +
  5. add auto option to cvRepetitions +
  6. +
  7. bumped explicit C++11 requirement up to R v4.1
  8. +
  9. removed deprecated use of dbplyr:::$.tbl_lazy +
    1. breaking change in dbplyr v2.4.0 +
    2. +
  10. +
+
+

Changes:

-
    -
  1. implement Fine-Gray competing risks regression
  2. +
    1. fix uninitialized value in detected in computeAsymptoticPrecisionMatrix(); value was priorType
    2. +
    3. fix memory leak caused by call to ::Rf_error() +
    4. +
    5. fix line-endings on Makevar on windows
    6. +
+
+ +
  1. bump for R 4.2
  2. +
  3. fix CRAN warnings +
    1. used minValues +
    2. +
  4. +
  5. fix CRAN notes +
    1. remove explicit dependence on C++11 (except for R <= 4.0)
    2. +
  6. +
+
+ +

Changes:

+
  1. fix small memory leak caused by direct call to ‘::Rf_error()’
  2. +
  3. disable JVM calls on CRAN due to uninitialized memory in Java JVM
  4. +
+
+ +

Changes:

+
  1. fixed likelihood profiling when non-convex due to numerical instability
  2. +
  3. fixed parsing of 64-bit covariate IDs
  4. +
  5. fix BLR convergence criterion when there are 0 (survival) events
  6. +
  7. add Jeffrey’s prior for single regression coefficient
  8. +
+
+ +

Changes:

+
  1. adaptive likelihood profiling when objective function is concave.
  2. +
+
+ +

Changes:

+
  1. specify new option nocenter in survival package when testing predicted hazard function
  2. +
+
+ +

Changes:

+
  1. implement Fine-Gray competing risks regression
  2. fixed getCyclopsProfileLogLikelihood when starting with extreme coefficients
  3. -
-
-
-

-Cyclops v3.0.0 2020-06-05 -

+
+
+

Changes:

-
    -
  1. switch to Andromeda from ff to hold large datasets. This change breaks API
  2. -
-
-
-

-Cyclops v2.0.4 Unreleased -

+
  1. switch to Andromeda from ff to hold large datasets. This change breaks API
  2. +
+
+

Changes:

-
    -
  1. removed, unused variable imputation functions that contained a std::exit +
    1. removed, unused variable imputation functions that contained a std::exit
    2. -
    -
-
-

-Cyclops v2.0.3 2020-04-11 -

+
+
+

Changes:

-
    -
  1. fix computation under conditional Poisson models by reverting to v1.3.4-style loop
  2. +
    1. fix computation under conditional Poisson models by reverting to v1.3.4-style loop
    2. fix several unit-tests for compatibility with R 4.0 factors
    3. add ability to profile likelihood function in parallel
    4. add initial infrastructure for competing risks models
    5. -
    -
-
-

-Cyclops v2.0.2 2019-03-17 -

+
+
+

Changes:

-
    -
  1. use RNGversion("3.5.0") in unit-tests to reproduce old RNG behavior
  2. +
    1. use RNGversion("3.5.0") in unit-tests to reproduce old RNG behavior
    2. fix prior-type checks when specifying multiple types
    3. -
    -
-
-

-Cyclops 2.0.1 2018-09-23 -

+
+
+

Changes:

-
    -
  1. patch two memory leaks in ModelData.cpp and ModelSpecifics.hpp +
    1. patch two memory leaks in ModelData.cpp and ModelSpecifics.hpp
    2. -
    -
-
-

-Cyclops 2.0.0 2018-09-18 -

+
+
+

Changes:

-
    -
  1. simplify internal transformation-reductions loops
  2. +
    1. simplify internal transformation-reductions loops
    2. implemented non-negative weights
    3. allow for run-time selection of 32-/64-bit reals
    4. remove dependence on GNUmake
    5. temporarily remove dependence on RcppParallel (until TBB is again R-compliant)
    6. -
    -
-
-

-Cyclops 1.3.4 2018-06-15 -

+
+
+

Changes:

-
    -
  1. fix undeclared dependencies in unit-tests: MASS and microbenchmarks +
    1. fix undeclared dependencies in unit-tests: MASS and microbenchmarks
    2. fix issues with ATLAS compilation
    3. add contexts to testthat files
    4. fix ASAN errors in AbstractModelSpecifics
    5. -
    -
-
-

-Cyclops 1.3.3 Unreleased -

+
+
+

Changes:

-
    -
  1. fix testthat expected error message
  2. -
-
-
-

-Cyclops 1.3.2 2018-05-04 -

+
  1. fix testthat expected error message
  2. +
+
+

Changes:

-
    -
  1. explicitly includes <complex> header, needed for R 3.5 builds
  2. +
    1. explicitly includes <complex> header, needed for R 3.5 builds
    2. remove pragma statements used to quiet RcppEigen and RcppParallel
    3. -
    -
-
-

-Cyclops 1.3.1 Unreleased -

+
+
+

Changes:

-
    -
  1. fixes covariate indices returned from .checkCovariates when excluding covariates from regularization
  2. -
-
-
-

-Cyclops 1.3.0 2017-08-23 -

+
  1. fixes covariate indices returned from .checkCovariates when excluding covariates from regularization
  2. +
+
+

Changes:

-
    -
  1. implements specialized priors through callbacks for use, for example, in the BrokenAdaptiveRidge package to provide L0-based model selection
  2. +
    1. implements specialized priors through callbacks for use, for example, in the BrokenAdaptiveRidge package to provide L0-based model selection
    2. implements specialized control through callbacks for use, for example, auto-and-grid-based cross-validation hyperparameter searches
    3. removes src/boost that clashes with BH 1.65.0
    4. -
    -
-
-

-Cyclops 1.2.3 Unreleased -

+
+
+

Changes:

-
    -
  1. fixed predict error with ff.data.frame with size == 0
  2. -
-
-
-

-Cyclops 1.2.2 2016-10-06 -

+
  1. fixed predict error with ff.data.frame with size == 0
  2. +
+
+

Changes:

-
    -
  1. fixed solaris build errors
  2. +
    1. fixed solaris build errors
    2. added compatibility for C++14 (make_unique)
    3. fixed multiple ASan warnings
    4. -
    -
-
-

-Cyclops 1.2.0 2016-08-01 -

+
+
+

Changes: initial submission to CRAN

+
-
- +
- - + + diff --git a/docs/pkgdown.css b/docs/pkgdown.css index 1273238d..80ea5b83 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -56,8 +56,10 @@ img.icon { float: right; } -img { +/* Ensure in-page images don't run outside their container */ +.contents img { max-width: 100%; + height: auto; } /* Fix bug in bootstrap (only seen in firefox) */ @@ -78,11 +80,10 @@ dd { /* Section anchors ---------------------------------*/ a.anchor { - margin-left: -30px; - display:inline-block; - width: 30px; - height: 30px; - visibility: hidden; + display: none; + margin-left: 5px; + width: 20px; + height: 20px; background-image: url(./link.svg); background-repeat: no-repeat; @@ -90,17 +91,15 @@ a.anchor { background-position: center center; } -.hasAnchor:hover a.anchor { - visibility: visible; -} - -@media (max-width: 767px) { - .hasAnchor:hover a.anchor { - visibility: hidden; - } +h1:hover .anchor, +h2:hover .anchor, +h3:hover .anchor, +h4:hover .anchor, +h5:hover .anchor, +h6:hover .anchor { + display: inline-block; } - /* Fixes for fixed navbar --------------------------*/ .contents h1, .contents h2, .contents h3, .contents h4 { @@ -264,31 +263,26 @@ table { /* Syntax highlighting ---------------------------------------------------- */ -pre { - word-wrap: normal; - word-break: normal; - border: 1px solid #eee; -} - -pre, code { +pre, code, pre code { background-color: #f8f8f8; color: #333; } +pre, pre code { + white-space: pre-wrap; + word-break: break-all; + overflow-wrap: break-word; +} -pre code { - overflow: auto; - word-wrap: normal; - white-space: pre; +pre { + border: 1px solid #eee; } -pre .img { +pre .img, pre .r-plt { margin: 5px 0; } -pre .img img { +pre .img img, pre .r-plt img { background-color: #fff; - display: block; - height: auto; } code a, pre a { @@ -305,9 +299,8 @@ a.sourceLine:hover { .kw {color: #264D66;} /* keyword */ .co {color: #888888;} /* comment */ -.message { color: black; font-weight: bolder;} -.error { color: orange; font-weight: bolder;} -.warning { color: #6A0366; font-weight: bolder;} +.error {font-weight: bolder;} +.warning {font-weight: bolder;} /* Clipboard --------------------------*/ @@ -365,3 +358,27 @@ mark { content: ""; } } + +/* Section anchors --------------------------------- + Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71 +*/ + +div.csl-bib-body { } +div.csl-entry { + clear: both; +} +.hanging-indent div.csl-entry { + margin-left:2em; + text-indent:-2em; +} +div.csl-left-margin { + min-width:2em; + float:left; +} +div.csl-right-inline { + margin-left:2em; + padding-left:1em; +} +div.csl-indent { + margin-left: 2em; +} diff --git a/docs/pkgdown.js b/docs/pkgdown.js index 7e7048fa..6f0eee40 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -80,7 +80,7 @@ $(document).ready(function() { var copyButton = ""; - $(".examples, div.sourceCode").addClass("hasCopyButton"); + $("div.sourceCode").addClass("hasCopyButton"); // Insert copy buttons: $(copyButton).prependTo(".hasCopyButton"); @@ -91,7 +91,7 @@ // Initialize clipboard: var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', { text: function(trigger) { - return trigger.parentNode.textContent; + return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, ""); } }); diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 59d17566..d55408be 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,6 +1,6 @@ -pandoc: 2.7.3 -pkgdown: 1.6.1 +pandoc: 3.1.2 +pkgdown: 2.0.7 pkgdown_sha: ~ articles: {} -last_built: 2021-06-17T13:30Z +last_built: 2023-10-31T13:12Z diff --git a/docs/reference/Cyclops-package.html b/docs/reference/Cyclops-package.html new file mode 100644 index 00000000..3b8af50b --- /dev/null +++ b/docs/reference/Cyclops-package.html @@ -0,0 +1,105 @@ + +Cyclops: Cyclic Coordinate Descent for Logistic, Poisson and Survival Analysis — Cyclops-package • Cyclops + + +
+
+ + + +
+
+ + +
+

This model fitting tool incorporates cyclic coordinate descent and majorization-minimization approaches to fit a variety of regression models found in large-scale observational healthcare data. Implementations focus on computational optimization and fine-scale parallelization to yield efficient inference in massive datasets. Please see: Suchard, Simpson, Zorych, Ryan and Madigan (2013) doi:10.1145/2414416.2414791 +.

+
+ + +
+

See also

+ +
+
+

Author

+

Maintainer: Marc A. Suchard msuchard@ucla.edu

+

Authors:

  • Martijn J. Schuemie

  • +
  • Trevor R. Shaddox

  • +
  • Yuxi Tian

  • +
  • Jianxiao Yang

  • +
  • Eric Kawaguchi

  • +

Other contributors:

  • Sushil Mittal [contributor]

  • +
  • Observational Health Data Sciences and Informatics [copyright holder]

  • +
  • Marcus Geelnard (provided the TinyThread library) [copyright holder, contributor]

  • +
  • Rutgers University (provided the HParSearch routine) [copyright holder, contributor]

  • +
  • R Development Core Team (provided the ZeroIn routine) [copyright holder, contributor]

  • +
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.7.

+
+ +
+ + + + + + + + diff --git a/docs/reference/Multitype.html b/docs/reference/Multitype.html index b8b4b67c..86d50ed9 100644 --- a/docs/reference/Multitype.html +++ b/docs/reference/Multitype.html @@ -1,68 +1,13 @@ - - - - - - - -Create a multitype outcome object — Multitype • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a multitype outcome object — Multitype • Cyclops - + + - - - -
-
- -
- -
+
-

Multitype creates a multitype outcome object, usually used as a response variable in a +

Multitype creates a multitype outcome object, usually used as a response variable in a hierarchical Cyclops model fit.

-
Multitype(y, type)
- -

Arguments

- - - - - - - - - - -
y

Numeric: Response count(s)

type

Numeric or factor: Response type

- -

Value

- -

An object of class Multitype with length equal to the length of y and type.

- -

Examples

-
Multitype(c(0,1,0), as.factor(c("A","A","B"))) -
#> y type -#> [1,] 0 1 -#> [2,] 1 1 -#> [3,] 0 2 -#> attr(,"contrasts") -#> B -#> A 0 -#> B 1 -#> attr(,"class") -#> [1] "Multitype"
-
+
+
Multitype(y, type)
+
+ +
+

Arguments

+
y
+

Numeric: Response count(s)

+ + +
type
+

Numeric or factor: Response type

+ +
+
+

Value

+ + +

An object of class Multitype with length equal to the length of y and type.

+
+ +
+

Examples

+
Multitype(c(0,1,0), as.factor(c("A","A","B")))
+#>      y type
+#> [1,] 0    1
+#> [2,] 1    1
+#> [3,] 0    2
+#> attr(,"contrasts")
+#>   B
+#> A 0
+#> B 1
+#> attr(,"class")
+#> [1] "Multitype"
+
+
+
+
-
- +
- - + + diff --git a/docs/reference/aconfint.html b/docs/reference/aconfint.html index fbb958fd..7f543f57 100644 --- a/docs/reference/aconfint.html +++ b/docs/reference/aconfint.html @@ -1,68 +1,13 @@ - - - - - - - -Asymptotic confidence intervals for a fitted Cyclops model object — aconfint • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Asymptotic confidence intervals for a fitted Cyclops model object — aconfint • Cyclops - - + + - - -
-
- -
- -
+
@@ -125,76 +57,74 @@

Asymptotic confidence intervals for a fitted Cyclops model object

arbitrary level using asymptotic standard error estimates.

-
aconfint(
-  object,
-  parm,
-  level = 0.95,
-  control,
-  overrideNoRegularization = FALSE,
-  ...
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
object

A fitted Cyclops model object

parm

A specification of which parameters require confidence intervals, -either a vector of numbers of covariateId names

level

Numeric: confidence level required

control

A "cyclopsControl" object constructed by createControl

overrideNoRegularization

Logical: Enable confidence interval estimation for regularized parameters

...

Additional argument(s) for methods

- -

Value

- -

A matrix with columns reporting lower and upper confidence limits for each parameter. -These columns are labelled as (1-level) / 2 and 1 - (1 - level) / 2 in -(by default 2.5

+
+
aconfint(
+  object,
+  parm,
+  level = 0.95,
+  control,
+  overrideNoRegularization = FALSE,
+  ...
+)
+
+ +
+

Arguments

+
object
+

A fitted Cyclops model object

+ + +
parm
+

A specification of which parameters require confidence intervals, +either a vector of numbers of covariateId names

+ + +
level
+

Numeric: confidence level required

+ + +
control
+

A "cyclopsControl" object constructed by createControl

+ + +
overrideNoRegularization
+

Logical: Enable confidence interval estimation for regularized parameters

+ + +
...
+

Additional argument(s) for methods

+ +
+
+

Value

+ + +

A matrix with columns reporting lower and upper confidence limits for each parameter. +These columns are labelled as (1-level) / 2 and 1 - (1 - level) / 2 in % +(by default 2.5% and 97.5%)

+
+
-
- +
- - + + diff --git a/docs/reference/appendSqlCyclopsData.html b/docs/reference/appendSqlCyclopsData.html index 6fd73d40..9d2087dc 100644 --- a/docs/reference/appendSqlCyclopsData.html +++ b/docs/reference/appendSqlCyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -appendSqlCyclopsData — appendSqlCyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -appendSqlCyclopsData — appendSqlCyclopsData • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,85 +55,81 @@

appendSqlCyclopsData

appendSqlCyclopsData appends data to an OHDSI data object.

-
appendSqlCyclopsData(
-  object,
-  oStratumId,
-  oRowId,
-  oY,
-  oTime,
-  cRowId,
-  cCovariateId,
-  cCovariateValue
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
object

OHDSI Cyclops data object to append entries

oStratumId

Integer vector (optional): non-unique stratum identifier for each row in outcomes table

oRowId

Integer vector: unique row identifier for each row in outcomes table

oY

Numeric vector: model outcome variable for each row in outcomes table

oTime

Numeric vector (optional): exposure interval or censoring time for each row in outcomes table

cRowId

Integer vector: non-unique row identifier for each row in covariates table that matches a single outcomes table entry

cCovariateId

Integer vector: covariate identifier

cCovariateValue

Numeric vector: covariate value

- -

Details

+
+
appendSqlCyclopsData(
+  object,
+  oStratumId,
+  oRowId,
+  oY,
+  oTime,
+  cRowId,
+  cCovariateId,
+  cCovariateValue
+)
+
+ +
+

Arguments

+
object
+

OHDSI Cyclops data object to append entries

+ + +
oStratumId
+

Integer vector (optional): non-unique stratum identifier for each row in outcomes table

+ + +
oRowId
+

Integer vector: unique row identifier for each row in outcomes table

+ + +
oY
+

Numeric vector: model outcome variable for each row in outcomes table

+ +
oTime
+

Numeric vector (optional): exposure interval or censoring time for each row in outcomes table

+ + +
cRowId
+

Integer vector: non-unique row identifier for each row in covariates table that matches a single outcomes table entry

+ + +
cCovariateId
+

Integer vector: covariate identifier

+ + +
cCovariateValue
+

Numeric vector: covariate value

+ +
+
+

Details

Append data using two tables. The outcomes table is dense and contains ... The covariates table is sparse and contains ... -All entries in the outcome table must be sorted in increasing order by oStratumId, oRowId. All entries in the covariate table -must be sorted in increasing order by cRowId. Each cRowId value must match exactly one oRowId value.

+All entries in the outcome table must be sorted in increasing order by (oStratumId, oRowId). All entries in the covariate table +must be sorted in increasing order by (cRowId). Each cRowId value must match exactly one oRowId value.

+
+
-
- +
- - + + diff --git a/docs/reference/coef.cyclopsFit.html b/docs/reference/coef.cyclopsFit.html index db4428d2..4b2cabbe 100644 --- a/docs/reference/coef.cyclopsFit.html +++ b/docs/reference/coef.cyclopsFit.html @@ -1,67 +1,12 @@ - - - - - - - -Extract model coefficients — coef.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Extract model coefficients — coef.cyclopsFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,59 +55,57 @@

Extract model coefficients

coef.cyclopsFit extracts model coefficients from an Cyclops model fit object

-
# S3 method for cyclopsFit
-coef(object, rescale = FALSE, ignoreConvergence = FALSE, ...)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
object

Cyclops model fit object

rescale

Boolean: rescale coefficients for unnormalized covariate values

ignoreConvergence

Boolean: return coefficients even if fit object did not converge

...

Other arguments

- -

Value

- -

Named numeric vector of model coefficients.

+
+
# S3 method for cyclopsFit
+coef(object, rescale = FALSE, ignoreConvergence = FALSE, ...)
+
+ +
+

Arguments

+
object
+

Cyclops model fit object

+ + +
rescale
+

Boolean: rescale coefficients for unnormalized covariate values

+ + +
ignoreConvergence
+

Boolean: return coefficients even if fit object did not converge

+ + +
...
+

Other arguments

+ +
+
+

Value

+ + +

Named numeric vector of model coefficients.

+
+
-
- +
- - + + diff --git a/docs/reference/confint.cyclopsFit.html b/docs/reference/confint.cyclopsFit.html index 03191154..9cccd20d 100644 --- a/docs/reference/confint.cyclopsFit.html +++ b/docs/reference/confint.cyclopsFit.html @@ -1,68 +1,13 @@ - - - - - - - -Confidence intervals for Cyclops model parameters — confint.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Confidence intervals for Cyclops model parameters — confint.cyclopsFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -125,204 +57,688 @@

Confidence intervals for Cyclops model parameters

arbitrary level. Usually it only makes sense to do this for variables that have not been regularized.

-
# S3 method for cyclopsFit
-confint(
-  object,
-  parm,
-  level = 0.95,
-  overrideNoRegularization = FALSE,
-  includePenalty = TRUE,
-  rescale = FALSE,
-  ...
-)
+
+
# S3 method for cyclopsFit
+confint(
+  object,
+  parm,
+  level = 0.95,
+  overrideNoRegularization = FALSE,
+  includePenalty = TRUE,
+  rescale = FALSE,
+  ...
+)
+
+ +
+

Arguments

+
object
+

A fitted Cyclops model object

+ + +
parm
+

A specification of which parameters require confidence intervals, +either a vector of numbers of covariateId names

+ + +
level
+

Numeric: confidence level required

+ -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
object

A fitted Cyclops model object

parm

A specification of which parameters require confidence intervals, -either a vector of numbers of covariateId names

level

Numeric: confidence level required

overrideNoRegularization

Logical: Enable confidence interval estimation for regularized parameters

includePenalty

Logical: Include regularized covariate penalty in profile

rescale

Boolean: rescale coefficients for unnormalized covariate values

...

Additional argument(s) for methods

+
overrideNoRegularization
+

Logical: Enable confidence interval estimation for regularized parameters

-

Value

-

A matrix with columns reporting lower and upper confidence limits for each parameter. +

includePenalty
+

Logical: Include regularized covariate penalty in profile

+ + +
rescale
+

Boolean: rescale coefficients for unnormalized covariate values

+ + +
...
+

Additional argument(s) for methods

+ +
+
+

Value

+ + +

A matrix with columns reporting lower and upper confidence limits for each parameter. These columns are labelled as (1-level) / 2 and 1 - (1 - level) / 2 in percent (by default 2.5 percent and 97.5 percent)

+
-

Examples

-
#Generate some simulated data: -sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, - model = "poisson") -
#> Sparseness = 74.45 %
cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", - addIntercept = TRUE) -
#> Sorting covariates by covariateId and rowId
-#Define the prior and control objects to use cross-validation for finding the -#optimal hyperparameter: -prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE) -control <- createControl(cvType = "auto", noiseLevel = "quiet") - -#Fit the model -fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control) -
#> Using cross-validation selector type byRow -#> Performing 10-fold cross-validation [seed = 1623936644] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100 -#> Using 1 thread(s) -#> Starting var = 0.2555 (default) -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #1 Rep #1 pred log like = 375.98 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #2 Rep #1 pred log like = 358.921 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #3 Rep #1 pred log like = 402.461 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #4 Rep #1 pred log like = 224.91 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #5 Rep #1 pred log like = 416.062 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #6 Rep #1 pred log like = 381.177 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #7 Rep #1 pred log like = 410.934 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #8 Rep #1 pred log like = 363.449 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #9 Rep #1 pred log like = 380.333 -#> Running at Laplace(2.79782) None Grid-point #1 at 0.2555 Fold #10 Rep #1 pred log like = 355.956 -#> AvgPred = 367.018 with stdev = 51.4233 -#> Completed at 0.2555 -#> Next point at 2.555 with value 0 and continue = 1 -#> search[ 0.2555 ] = 367.018(51.4233) -#> -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #1 Rep #1 pred log like = 375.99 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #2 Rep #1 pred log like = 358.892 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #3 Rep #1 pred log like = 402.439 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #4 Rep #1 pred log like = 224.885 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #5 Rep #1 pred log like = 416.043 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #6 Rep #1 pred log like = 381.179 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #7 Rep #1 pred log like = 410.904 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #8 Rep #1 pred log like = 363.425 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #9 Rep #1 pred log like = 380.301 -#> Running at Laplace(0.884748) None Grid-point #2 at 2.555 Fold #10 Rep #1 pred log like = 355.924 -#> AvgPred = 366.998 with stdev = 51.4251 -#> Completed at 2.555 -#> Next point at 0.02555 with value 0 and continue = 1 -#> search[ 0.2555 ] = 367.018(51.4233) -#> search[ 2.555 ] = 366.998(51.4251) -#> -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #1 Rep #1 pred log like = 375.97 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #2 Rep #1 pred log like = 358.995 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #3 Rep #1 pred log like = 402.483 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #4 Rep #1 pred log like = 224.985 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #5 Rep #1 pred log like = 416.12 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #6 Rep #1 pred log like = 381.169 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #7 Rep #1 pred log like = 411.069 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #8 Rep #1 pred log like = 363.513 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #9 Rep #1 pred log like = 380.385 -#> Running at Laplace(8.84748) None Grid-point #3 at 0.02555 Fold #10 Rep #1 pred log like = 356.053 -#> AvgPred = 367.074 with stdev = 51.4186 -#> Completed at 0.02555 -#> Next point at 0.002555 with value 0 and continue = 1 -#> search[ 0.02555 ] = 367.074(51.4186) -#> search[ 0.2555 ] = 367.018(51.4233) -#> search[ 2.555 ] = 366.998(51.4251) -#> -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #1 Rep #1 pred log like = 375.97 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #2 Rep #1 pred log like = 359.05 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #3 Rep #1 pred log like = 402.485 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #4 Rep #1 pred log like = 225.084 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #5 Rep #1 pred log like = 416.178 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #6 Rep #1 pred log like = 381.169 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #7 Rep #1 pred log like = 411.373 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #8 Rep #1 pred log like = 363.543 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #9 Rep #1 pred log like = 380.399 -#> Running at Laplace(27.9782) None Grid-point #4 at 0.002555 Fold #10 Rep #1 pred log like = 356.206 -#> AvgPred = 367.146 with stdev = 51.4189 -#> Completed at 0.002555 -#> Next point at 0.0002555 with value 0 and continue = 1 -#> search[ 0.002555 ] = 367.146(51.4189) -#> search[ 0.02555 ] = 367.074(51.4186) -#> search[ 0.2555 ] = 367.018(51.4233) -#> search[ 2.555 ] = 366.998(51.4251) -#> -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #1 Rep #1 pred log like = 375.97 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #2 Rep #1 pred log like = 359.05 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #3 Rep #1 pred log like = 402.485 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #4 Rep #1 pred log like = 225.084 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #5 Rep #1 pred log like = 416.178 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #6 Rep #1 pred log like = 381.169 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #7 Rep #1 pred log like = 411.373 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #8 Rep #1 pred log like = 363.543 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #9 Rep #1 pred log like = 380.399 -#> Running at Laplace(88.4748) None Grid-point #5 at 0.0002555 Fold #10 Rep #1 pred log like = 356.206 -#> AvgPred = 367.146 with stdev = 51.4189 -#> Completed at 0.0002555 -#> Next point at 2.16648e-14 with value 367.335 and continue = 0 -#> search[ 0.0002555 ] = 367.146(51.4189) -#> search[ 0.002555 ] = 367.146(51.4189) -#> search[ 0.02555 ] = 367.074(51.4186) -#> search[ 0.2555 ] = 367.018(51.4233) -#> search[ 2.555 ] = 366.998(51.4251) -#> -#> -#> Maximum predicted log likelihood (367.335) estimated at: -#> 2.16648e-14 (variance) -#> 9.6081e+06 (lambda) -#> -#> Fitting model at optimal hyperparameter -#> Using prior: Laplace(9.6081e+06) None
-#Find out what the optimal hyperparameter was: -getHyperParameter(fit) -
#> [1] 2.166483e-14
-#Extract the current log-likelihood, and coefficients -logLik(fit) -
#> 'log Lik.' -1973.343 (df=3)
coef(fit) -
#> (Intercept) 1 2 -#> -3.937029 0.000000 0.000000
-#We can only retrieve the confidence interval for unregularized coefficients: -confint(fit, c(0)) -
#> Using 1 thread(s)
#> covariate 2.5 % 97.5 % evaluations -#> [1,] 0 -3.965463 -3.908849 24
+
+

Examples

+
#Generate some simulated data:
+sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, 
+                           model = "poisson")
+#> Sparseness = 77 %
+cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", 
+                                    addIntercept = TRUE)
+#> Sorting covariates by covariateId and rowId
+
+#Define the prior and control objects to use cross-validation for finding the 
+#optimal hyperparameter:
+prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE)
+control <- createControl(cvType = "auto", noiseLevel = "quiet")
+
+#Fit the model
+fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control)  
+#> Using cross-validation selector type byRow
+#> Performing 10-fold cross-validation [seed = 1698757931] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100
+#> Using 1 thread(s)
+#> Starting var = 0.23 (default)
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #1 Rep #1 pred log like = 267.858
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #2 Rep #1 pred log like = 210.218
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #3 Rep #1 pred log like = 247.642
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #4 Rep #1 pred log like = 268.625
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #5 Rep #1 pred log like = 234.92
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #6 Rep #1 pred log like = 256.935
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #7 Rep #1 pred log like = 237.206
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #8 Rep #1 pred log like = 203.575
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #9 Rep #1 pred log like = 268.979
+#> Running at Laplace(2.94884) None  Grid-point #1 at 0.23 	Fold #10 Rep #1 pred log like = 313.499
+#> AvgPred = 250.946 with stdev = 30.3841
+#> Completed at 0.23
+#> Next point at 2.3 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> 
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #1 Rep #1 pred log like = 267.817
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #2 Rep #1 pred log like = 210.18
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #3 Rep #1 pred log like = 247.667
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #4 Rep #1 pred log like = 268.65
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #5 Rep #1 pred log like = 234.965
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #6 Rep #1 pred log like = 256.945
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #7 Rep #1 pred log like = 237.151
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #8 Rep #1 pred log like = 203.606
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #9 Rep #1 pred log like = 268.987
+#> Running at Laplace(0.932505) None  Grid-point #2 at 2.3 	Fold #10 Rep #1 pred log like = 313.505
+#> AvgPred = 250.947 with stdev = 30.3849
+#> Completed at 2.3
+#> Next point at 23 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> 
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #1 Rep #1 pred log like = 267.803
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #2 Rep #1 pred log like = 210.168
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #3 Rep #1 pred log like = 247.674
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #4 Rep #1 pred log like = 268.657
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #5 Rep #1 pred log like = 234.98
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #6 Rep #1 pred log like = 256.948
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #7 Rep #1 pred log like = 237.134
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #8 Rep #1 pred log like = 203.616
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #9 Rep #1 pred log like = 268.988
+#> Running at Laplace(0.294884) None  Grid-point #3 at 23 	Fold #10 Rep #1 pred log like = 313.506
+#> AvgPred = 250.947 with stdev = 30.3852
+#> Completed at 23
+#> Next point at 230 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> 
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #1 Rep #1 pred log like = 267.799
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #2 Rep #1 pred log like = 210.165
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #3 Rep #1 pred log like = 247.677
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #4 Rep #1 pred log like = 268.66
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #5 Rep #1 pred log like = 234.984
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #6 Rep #1 pred log like = 256.948
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #7 Rep #1 pred log like = 237.128
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #8 Rep #1 pred log like = 203.619
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(0.0932505) None  Grid-point #4 at 230 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 230
+#> Next point at 2300 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #1 Rep #1 pred log like = 267.798
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #4 Rep #1 pred log like = 268.66
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #5 Rep #1 pred log like = 234.985
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #7 Rep #1 pred log like = 237.126
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(0.0294884) None  Grid-point #5 at 2300 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2300
+#> Next point at 23000 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #7 Rep #1 pred log like = 237.126
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(0.00932505) None  Grid-point #6 at 23000 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 23000
+#> Next point at 230000 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #7 Rep #1 pred log like = 237.126
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(0.00294884) None  Grid-point #7 at 230000 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 230000
+#> Next point at 2.3e+06 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(0.000932505) None  Grid-point #8 at 2.3e+06 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+06
+#> Next point at 2.3e+07 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(0.000294884) None  Grid-point #9 at 2.3e+07 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+07
+#> Next point at 2.3e+08 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-05) None  Grid-point #10 at 2.3e+08 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+08
+#> Next point at 2.3e+09 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(2.94884e-05) None  Grid-point #11 at 2.3e+09 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+09
+#> Next point at 2.3e+10 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-06) None  Grid-point #12 at 2.3e+10 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+10
+#> Next point at 2.3e+11 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(2.94884e-06) None  Grid-point #13 at 2.3e+11 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+11
+#> Next point at 2.3e+12 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-07) None  Grid-point #14 at 2.3e+12 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+12
+#> Next point at 2.3e+13 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(2.94884e-07) None  Grid-point #15 at 2.3e+13 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+13
+#> Next point at 2.3e+14 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-08) None  Grid-point #16 at 2.3e+14 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+14
+#> Next point at 2.3e+15 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(2.94884e-08) None  Grid-point #17 at 2.3e+15 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+15
+#> Next point at 2.3e+16 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> search[ 2.3e+15 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-09) None  Grid-point #18 at 2.3e+16 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+16
+#> Next point at 2.3e+17 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> search[ 2.3e+15 ] = 250.948(30.3853)
+#> search[ 2.3e+16 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(2.94884e-09) None  Grid-point #19 at 2.3e+17 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+17
+#> Next point at 2.3e+18 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> search[ 2.3e+15 ] = 250.948(30.3853)
+#> search[ 2.3e+16 ] = 250.948(30.3853)
+#> search[ 2.3e+17 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-10) None  Grid-point #20 at 2.3e+18 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+18
+#> Next point at 2.3e+19 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> search[ 2.3e+15 ] = 250.948(30.3853)
+#> search[ 2.3e+16 ] = 250.948(30.3853)
+#> search[ 2.3e+17 ] = 250.948(30.3853)
+#> search[ 2.3e+18 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(2.94884e-10) None  Grid-point #21 at 2.3e+19 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+19
+#> Next point at 2.3e+20 with value 0 and continue = 1
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> search[ 2.3e+15 ] = 250.948(30.3853)
+#> search[ 2.3e+16 ] = 250.948(30.3853)
+#> search[ 2.3e+17 ] = 250.948(30.3853)
+#> search[ 2.3e+18 ] = 250.948(30.3853)
+#> search[ 2.3e+19 ] = 250.948(30.3853)
+#> 
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #1 Rep #1 pred log like = 267.797
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #2 Rep #1 pred log like = 210.163
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #3 Rep #1 pred log like = 247.678
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #4 Rep #1 pred log like = 268.661
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #5 Rep #1 pred log like = 234.986
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #6 Rep #1 pred log like = 256.949
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #7 Rep #1 pred log like = 237.125
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #8 Rep #1 pred log like = 203.62
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #9 Rep #1 pred log like = 268.989
+#> Running at Laplace(9.32505e-11) None  Grid-point #22 at 2.3e+20 	Fold #10 Rep #1 pred log like = 313.507
+#> AvgPred = 250.948 with stdev = 30.3853
+#> Completed at 2.3e+20
+#> Next point at 2.41831e+12 with value 250.948 and continue = 0
+#> search[ 0.23 ] = 250.946(30.3841)
+#> search[ 2.3 ] = 250.947(30.3849)
+#> search[ 23 ] = 250.947(30.3852)
+#> search[ 230 ] = 250.948(30.3853)
+#> search[ 2300 ] = 250.948(30.3853)
+#> search[ 23000 ] = 250.948(30.3853)
+#> search[ 230000 ] = 250.948(30.3853)
+#> search[ 2.3e+06 ] = 250.948(30.3853)
+#> search[ 2.3e+07 ] = 250.948(30.3853)
+#> search[ 2.3e+08 ] = 250.948(30.3853)
+#> search[ 2.3e+09 ] = 250.948(30.3853)
+#> search[ 2.3e+10 ] = 250.948(30.3853)
+#> search[ 2.3e+11 ] = 250.948(30.3853)
+#> search[ 2.3e+12 ] = 250.948(30.3853)
+#> search[ 2.3e+13 ] = 250.948(30.3853)
+#> search[ 2.3e+14 ] = 250.948(30.3853)
+#> search[ 2.3e+15 ] = 250.948(30.3853)
+#> search[ 2.3e+16 ] = 250.948(30.3853)
+#> search[ 2.3e+17 ] = 250.948(30.3853)
+#> search[ 2.3e+18 ] = 250.948(30.3853)
+#> search[ 2.3e+19 ] = 250.948(30.3853)
+#> search[ 2.3e+20 ] = 250.948(30.3853)
+#> 
+#> 
+#> Maximum predicted log likelihood (250.948) estimated at:
+#> 	2.41831e+12 (variance)
+#> 	9.09409e-07 (lambda)
+#> 
+#> Fitting model at optimal hyperparameter
+#> Using prior: Laplace(9.09409e-07) None 
+
+#Find out what the optimal hyperparameter was:
+getHyperParameter(fit)
+#> [1] 2.418308e+12
+
+#Extract the current log-likelihood, and coefficients
+logLik(fit)
+#> 'log Lik.' -1953.765 (df=3)
+coef(fit)
+#> (Intercept)           1           2 
+#> -4.19783727  0.30746087  0.02797239 
+
+#We can only retrieve the confidence interval for unregularized coefficients:
+confint(fit, c(0))
+#> Using 1 thread(s)
+#>             covariate     2.5 %    97.5 % evaluations
+#> (Intercept)         0 -4.236526 -4.159602          22
+
+
+
-
- +
- - + + diff --git a/docs/reference/convertToCyclopsData.html b/docs/reference/convertToCyclopsData.html index a9d7f04e..b74b9d80 100644 --- a/docs/reference/convertToCyclopsData.html +++ b/docs/reference/convertToCyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -Convert data from two data frames or ffdf objects into a CyclopsData object — convertToCyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Convert data from two data frames or ffdf objects into a CyclopsData object — convertToCyclopsData • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,163 +55,145 @@

Convert data from two data frames or ffdf objects into a CyclopsData object<

convertToCyclopsData loads data from two data frames or ffdf objects, and inserts it into a Cyclops data object.

-
convertToCyclopsData(
-  outcomes,
-  covariates,
-  modelType = "lr",
-  addIntercept = TRUE,
-  checkSorting = NULL,
-  checkRowIds = TRUE,
-  normalize = NULL,
-  quiet = FALSE,
-  floatingPoint = 64
-)
-
-# S3 method for data.frame
-convertToCyclopsData(
-  outcomes,
-  covariates,
-  modelType = "lr",
-  addIntercept = TRUE,
-  checkSorting = NULL,
-  checkRowIds = TRUE,
-  normalize = NULL,
-  quiet = FALSE,
-  floatingPoint = 64
-)
-
-# S3 method for tbl_dbi
-convertToCyclopsData(
-  outcomes,
-  covariates,
-  modelType = "lr",
-  addIntercept = TRUE,
-  checkSorting = NULL,
-  checkRowIds = TRUE,
-  normalize = NULL,
-  quiet = FALSE,
-  floatingPoint = 64
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
outcomes

A data frame or ffdf object containing the outcomes with predefined columns (see below).

covariates

A data frame or ffdf object containing the covariates with predefined columns (see below).

modelType

Cyclops model type. Current supported types are "pr", "cpr", lr", "clr", or "cox"

addIntercept

Add an intercept to the model?

checkSorting

(DEPRECATED) Check if the data are sorted appropriately, and if not, sort.

checkRowIds

Check if all rowIds in the covariates appear in the outcomes.

normalize

String: Name of normalization for all non-indicator covariates (possible values: stdev, max, median)

quiet

If true, (warning) messages are suppressed.

floatingPoint

Specified floating-point representation size (32 or 64)

- -

Value

- -

An object of type cyclopsData

-

Details

- -

These columns are expected in the outcome object:

- - - - - - - -
stratumId(integer)(optional) Stratum ID for conditional regression models
rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
y(real)The outcome variable
time(real)For models that use time (e.g. Poisson or Cox regression) this contains time
(e.g. number of days)
weights(real)(optional) Non-negative weights to apply to outcome
censorWeights(real)(optional) Non-negative censoring weights for competing risk model; will be computed if not provided.
- - -

These columns are expected in the covariates object:

- - - - -
stratumId(integer)(optional) Stratum ID for conditional regression models
rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
covariateId(integer)A numeric identifier of a covariate
covariateValue(real)The value of the specified covariate
- - -

Methods (by class)

+
+
convertToCyclopsData(
+  outcomes,
+  covariates,
+  modelType = "lr",
+  addIntercept = TRUE,
+  checkSorting = NULL,
+  checkRowIds = TRUE,
+  normalize = NULL,
+  quiet = FALSE,
+  floatingPoint = 64
+)
+
+# S3 method for data.frame
+convertToCyclopsData(
+  outcomes,
+  covariates,
+  modelType = "lr",
+  addIntercept = TRUE,
+  checkSorting = NULL,
+  checkRowIds = TRUE,
+  normalize = NULL,
+  quiet = FALSE,
+  floatingPoint = 64
+)
+
+# S3 method for tbl_dbi
+convertToCyclopsData(
+  outcomes,
+  covariates,
+  modelType = "lr",
+  addIntercept = TRUE,
+  checkSorting = NULL,
+  checkRowIds = TRUE,
+  normalize = NULL,
+  quiet = FALSE,
+  floatingPoint = 64
+)
+
+ +
+

Arguments

+
outcomes
+

A data frame or ffdf object containing the outcomes with predefined columns (see below).

+ + +
covariates
+

A data frame or ffdf object containing the covariates with predefined columns (see below).

+ + +
modelType
+

Cyclops model type. Current supported types are "pr", "cpr", lr", "clr", or "cox"

+ + +
addIntercept
+

Add an intercept to the model?

+ + +
checkSorting
+

(DEPRECATED) Check if the data are sorted appropriately, and if not, sort.

+ +
checkRowIds
+

Check if all rowIds in the covariates appear in the outcomes.

+ + +
normalize
+

String: Name of normalization for all non-indicator covariates (possible values: stdev, max, median)

+ + +
quiet
+

If true, (warning) messages are suppressed.

+ + +
floatingPoint
+

Specified floating-point representation size (32 or 64)

+ +
+
+

Value

-
    -
  • data.frame: Convert data from two data.frame

  • -
  • tbl_dbi: Convert data from two Andromeda tables

  • -
- -

Examples

-
#Convert infert dataset to Cyclops format: -covariates <- data.frame(stratumId = rep(infert$stratum, 2), - rowId = rep(1:nrow(infert), 2), - covariateId = rep(1:2, each = nrow(infert)), - covariateValue = c(infert$spontaneous, infert$induced)) -outcomes <- data.frame(stratumId = infert$stratum, - rowId = 1:nrow(infert), - y = infert$case) -#Make sparse: -covariates <- covariates[covariates$covariateValue != 0, ] - -#Create Cyclops data object: -cyclopsData <- convertToCyclopsData(outcomes, covariates, modelType = "clr", - addIntercept = FALSE) -
#> Sorting outcomes by stratumId and rowId -#> Sorting covariates by covariateId, stratumId, and rowId
-#Fit model: -fit <- fitCyclopsModel(cyclopsData, prior = createPrior("none")) - -
+ +

An object of type cyclopsData

+
+
+

Details

+

These columns are expected in the outcome object:

stratumId(integer)(optional) Stratum ID for conditional regression models
rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
y(real)The outcome variable
time(real)For models that use time (e.g. Poisson or Cox regression) this contains time
(e.g. number of days)
weights(real)(optional) Non-negative weights to apply to outcome
censorWeights(real)(optional) Non-negative censoring weights for competing risk model; will be computed if not provided.

These columns are expected in the covariates object:

stratumId(integer)(optional) Stratum ID for conditional regression models
rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
covariateId(integer)A numeric identifier of a covariate
covariateValue(real)The value of the specified covariate
+
+

Methods (by class)

+ +
  • convertToCyclopsData(data.frame): Convert data from two data.frame

  • +
  • convertToCyclopsData(tbl_dbi): Convert data from two Andromeda tables

  • +
+ +
+

Examples

+
#Convert infert dataset to Cyclops format:
+covariates <- data.frame(stratumId = rep(infert$stratum, 2),
+                         rowId = rep(1:nrow(infert), 2),
+                         covariateId = rep(1:2, each = nrow(infert)),
+                         covariateValue = c(infert$spontaneous, infert$induced))
+outcomes <- data.frame(stratumId = infert$stratum,
+                       rowId = 1:nrow(infert),
+                       y = infert$case)
+#Make sparse:
+covariates <- covariates[covariates$covariateValue != 0, ]
+
+#Create Cyclops data object:
+cyclopsData <- convertToCyclopsData(outcomes, covariates, modelType = "clr",
+                                    addIntercept = FALSE)
+#> Sorting outcomes by stratumId and rowId
+#> Sorting covariates by covariateId, stratumId, and rowId
+
+#Fit model:
+fit <- fitCyclopsModel(cyclopsData, prior = createPrior("none"))
+
+
+
+
-
- +
- - + + diff --git a/docs/reference/convertToCyclopsVariance.html b/docs/reference/convertToCyclopsVariance.html index d2e17bce..27798fa8 100644 --- a/docs/reference/convertToCyclopsVariance.html +++ b/docs/reference/convertToCyclopsVariance.html @@ -1,68 +1,13 @@ - - - - - - - -Convert to Cyclops Prior Variance — convertToCyclopsVariance • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Convert to Cyclops Prior Variance — convertToCyclopsVariance • Cyclops - - - - + + -
-
- -
- -
+
@@ -125,50 +57,48 @@

Convert to Cyclops Prior Variance

from glmnet into a prior variance.

-
convertToCyclopsVariance(lambda, nobs)
+
+
convertToCyclopsVariance(lambda, nobs)
+
+ +
+

Arguments

+
lambda
+

Regularization parameter from glmnet

-

Arguments

- - - - - - - - - - -
lambda

Regularization parameter from glmnet

nobs

Number of observation rows in dataset

-

Value

+
nobs
+

Number of observation rows in dataset

-

Prior variance under a Laplace() prior

+
+
+

Value

+ + +

Prior variance under a Laplace() prior

+
+
-
- +
- - + + diff --git a/docs/reference/convertToGlmnetLambda.html b/docs/reference/convertToGlmnetLambda.html index 3ec749d8..940dbdf7 100644 --- a/docs/reference/convertToGlmnetLambda.html +++ b/docs/reference/convertToGlmnetLambda.html @@ -1,68 +1,13 @@ - - - - - - - -Convert to glmnet regularization parameter — convertToGlmnetLambda • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Convert to glmnet regularization parameter — convertToGlmnetLambda • Cyclops - - + + - - -
-
- -
- -
+
@@ -125,50 +57,50 @@

Convert to glmnet regularization parameter

from Cyclops into the regularization parameter lambda.

-
convertToGlmnetLambda(variance, nobs)
+
+
convertToGlmnetLambda(variance, nobs)
+
+ +
+

Arguments

+
variance
+

Prior variance

+ + +
nobs
+

Number of observation rows in dataset

-

Arguments

- - - - - - - - - - -
variance

Prior variance

nobs

Number of observation rows in dataset

+
+
+

Value

+ -

Value

+

lambda

-

lambda

+ +
+
-
- +
- - + + diff --git a/docs/reference/convertToTimeVaryingCoef.html b/docs/reference/convertToTimeVaryingCoef.html new file mode 100644 index 00000000..e6fb2b9e --- /dev/null +++ b/docs/reference/convertToTimeVaryingCoef.html @@ -0,0 +1,109 @@ + +Convert short sparse covariate table to long sparse covariate table for time-varying coefficients. — convertToTimeVaryingCoef • Cyclops + + +
+
+ + + +
+
+ + +
+

convertToTimeVaryingCoef convert short sparse covariate table to long sparse covariate table for time-varying coefficients.

+
+ +
+
convertToTimeVaryingCoef(shortCov, longOut, timeVaryCoefId)
+
+ +
+

Arguments

+
shortCov
+

A data frame containing the covariate with predefined columns (see below).

+ + +
longOut
+

A data frame containing the outcomes with predefined columns (see below), output of splitTime.

+ + +
timeVaryCoefId
+

Integer: A numeric identifier of a time-varying coefficient

+ +
+
+

Value

+ + +

A long sparse covariate table for time-varying coefficients.

+
+
+

Details

+

These columns are expected in the shortCov object:

rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
covariateId(integer)A numeric identifier of a covariate
covariateValue(real)The value of the specified covariate

These columns are expected in the longOut object:

stratumId(integer)Stratum ID for time-varying models
subjectId(integer)Subject ID is used to link multiple covariates (x) at different time intervals to a single subject
rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
y(real)The outcome variable
time(real)For models that use time (e.g. Poisson or Cox regression) this contains time
(e.g. number of days)
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.7.

+
+ +
+ + + + + + + + diff --git a/docs/reference/coverage.html b/docs/reference/coverage.html index 03373c59..97d8a4a3 100644 --- a/docs/reference/coverage.html +++ b/docs/reference/coverage.html @@ -1,67 +1,12 @@ - - - - - - - -Coverage — coverage • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Coverage — coverage • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,54 +55,54 @@

Coverage

coverage computes the coverage on confidence intervals

-
coverage(goldStandard, lowerBounds, upperBounds)
- -

Arguments

- - - - - - - - - - - - - - -
goldStandard

Numeric vector

lowerBounds

Numeric vector. Lower bound of the confidence intervals

upperBounds

Numeric vector. Upper bound of the confidence intervals

- -

Value

- -

The proportion of times goldStandard falls between lowerBound and upperBound

+
+
coverage(goldStandard, lowerBounds, upperBounds)
+
+ +
+

Arguments

+
goldStandard
+

Numeric vector

+ + +
lowerBounds
+

Numeric vector. Lower bound of the confidence intervals

+ + +
upperBounds
+

Numeric vector. Upper bound of the confidence intervals

+ +
+
+

Value

+ + +

The proportion of times goldStandard falls between lowerBound and upperBound

+ + +
+
-
- +
- - + + diff --git a/docs/reference/createAutoGridCrossValidationControl.html b/docs/reference/createAutoGridCrossValidationControl.html index f95009f9..c5273416 100644 --- a/docs/reference/createAutoGridCrossValidationControl.html +++ b/docs/reference/createAutoGridCrossValidationControl.html @@ -1,69 +1,14 @@ - - - - - - - -Create a Cyclops control object that supports multiple hyperparameters — createAutoGridCrossValidationControl • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Cyclops control object that supports multiple hyperparameters — createAutoGridCrossValidationControl • Cyclops - - - - - - - - - - - + + - - -
-
- -
- -
+
-

createCrossValidationControl creates a Cyclops control object for use with fitCyclopsModel +

createCrossValidationControl creates a Cyclops control object for use with fitCyclopsModel that supports multiple hyperparameters through an auto-search in one dimension and a grid-search over the remaining dimensions

-
createAutoGridCrossValidationControl(
-  outerGrid,
-  autoPosition = 1,
-  refitAtMaximum = TRUE,
-  cvType = "auto",
-  initialValue = 1,
-  ...
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
outerGrid

List or data.frame of grid parameters to explore

autoPosition

Vector position for auto-search parameter (concatenated into outerGrid)

refitAtMaximum

Logical: re-fit Cyclops object at maximal cross-validation parameters

cvType

Must equal "auto"

initialValue

Initial value for auto-search parameter

...

Additional parameters passed through to createControl

- -

Value

- -

A Cyclops prior object of class inheriting from "cyclopsPrior" and "cyclopsFunctionalPrior" -for use with fitCyclopsModel.

+
+
createAutoGridCrossValidationControl(
+  outerGrid,
+  autoPosition = 1,
+  refitAtMaximum = TRUE,
+  cvType = "auto",
+  initialValue = 1,
+  ...
+)
+
+ +
+

Arguments

+
outerGrid
+

List or data.frame of grid parameters to explore

+ + +
autoPosition
+

Vector position for auto-search parameter (concatenated into outerGrid)

+ + +
refitAtMaximum
+

Logical: re-fit Cyclops object at maximal cross-validation parameters

+ + +
cvType
+

Must equal "auto"

+ + +
initialValue
+

Initial value for auto-search parameter

+ + +
...
+

Additional parameters passed through to createControl

+ +
+
+

Value

+ + +

A Cyclops prior object of class inheriting from "cyclopsPrior" and "cyclopsFunctionalPrior"

+ + +

for use with fitCyclopsModel.

+
+
-
- +
- - + + diff --git a/docs/reference/createControl.html b/docs/reference/createControl.html index d01aaf31..6f9278ee 100644 --- a/docs/reference/createControl.html +++ b/docs/reference/createControl.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Cyclops control object — createControl • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Cyclops control object — createControl • Cyclops - + + - - - -
-
- -
- -
+
-

createControl creates a Cyclops control object for use with fitCyclopsModel.

+

createControl creates a Cyclops control object for use with fitCyclopsModel.

+
+ +
+
createControl(
+  maxIterations = 1000,
+  tolerance = 1e-06,
+  convergenceType = "gradient",
+  cvType = "auto",
+  fold = 10,
+  lowerLimit = 0.01,
+  upperLimit = 20,
+  gridSteps = 10,
+  cvRepetitions = 1,
+  minCVData = 100,
+  noiseLevel = "silent",
+  threads = 1,
+  seed = NULL,
+  resetCoefficients = FALSE,
+  startingVariance = -1,
+  useKKTSwindle = FALSE,
+  tuneSwindle = 10,
+  selectorType = "auto",
+  initialBound = 2,
+  maxBoundCount = 5,
+  algorithm = "ccd"
+)
-
createControl(
-  maxIterations = 1000,
-  tolerance = 1e-06,
-  convergenceType = "gradient",
-  cvType = "auto",
-  fold = 10,
-  lowerLimit = 0.01,
-  upperLimit = 20,
-  gridSteps = 10,
-  cvRepetitions = 1,
-  minCVData = 100,
-  noiseLevel = "silent",
-  threads = 1,
-  seed = NULL,
-  resetCoefficients = FALSE,
-  startingVariance = -1,
-  useKKTSwindle = FALSE,
-  tuneSwindle = 10,
-  selectorType = "auto",
-  initialBound = 2,
-  maxBoundCount = 5,
-  algorithm = "ccd"
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
maxIterations

Integer: maximum iterations of Cyclops to attempt before returning a failed-to-converge error

tolerance

Numeric: maximum relative change in convergence criterion from successive iterations to achieve convergence

convergenceType

String: name of convergence criterion to employ (described in more detail below)

cvType

String: name of cross validation search. +

+

Arguments

+
maxIterations
+

Integer: maximum iterations of Cyclops to attempt before returning a failed-to-converge error

+ + +
tolerance
+

Numeric: maximum relative change in convergence criterion from successive iterations to achieve convergence

+ + +
convergenceType
+

String: name of convergence criterion to employ (described in more detail below)

+ + +
cvType
+

String: name of cross validation search. Option "auto" selects an auto-search following BBR. -Option "grid" selects a grid-search cross validation

fold

Numeric: Number of random folds to employ in cross validation

lowerLimit

Numeric: Lower prior variance limit for grid-search

upperLimit

Numeric: Upper prior variance limit for grid-search

gridSteps

Numeric: Number of steps in grid-search

cvRepetitions

Numeric: Number of repetitions of X-fold cross validation

minCVData

Numeric: Minimum number of data for cross validation

noiseLevel

String: level of Cyclops screen output ("silent", "quiet", "noisy")

threads

Numeric: Specify number of CPU threads to employ in cross-validation; default = 1 (auto = -1)

seed

Numeric: Specify random number generator seed. A null value sets seed via Sys.time.

resetCoefficients

Logical: Reset all coefficients to 0 between model fits under cross-validation

startingVariance

Numeric: Starting variance for auto-search cross-validation; default = -1 (use estimate based on data)

useKKTSwindle

Logical: Use the Karush-Kuhn-Tucker conditions to limit search

tuneSwindle

Numeric: Size multiplier for active set

selectorType

String: name of exchangeable sampling unit. +Option "grid" selects a grid-search cross validation

+ + +
fold
+

Numeric: Number of random folds to employ in cross validation

+ + +
lowerLimit
+

Numeric: Lower prior variance limit for grid-search

+ + +
upperLimit
+

Numeric: Upper prior variance limit for grid-search

+ + +
gridSteps
+

Numeric: Number of steps in grid-search

+ + +
cvRepetitions
+

Numeric: Number of repetitions of X-fold cross validation

+ + +
minCVData
+

Numeric: Minimum number of data for cross validation

+ + +
noiseLevel
+

String: level of Cyclops screen output ("silent", "quiet", "noisy")

+ + +
threads
+

Numeric: Specify number of CPU threads to employ in cross-validation; default = 1 (auto = -1)

+ + +
seed
+

Numeric: Specify random number generator seed. A null value sets seed via Sys.time.

+ + +
resetCoefficients
+

Logical: Reset all coefficients to 0 between model fits under cross-validation

+ + +
startingVariance
+

Numeric: Starting variance for auto-search cross-validation; default = -1 (use estimate based on data)

+ + +
useKKTSwindle
+

Logical: Use the Karush-Kuhn-Tucker conditions to limit search

+ + +
tuneSwindle
+

Numeric: Size multiplier for active set

+ + +
selectorType
+

String: name of exchangeable sampling unit. Option "byPid" selects entire strata. Option "byRow" selects single rows. If set to "auto", "byRow" will be used for all models except conditional models where -the average number of rows per stratum is smaller than the number of strata.

initialBound

Numeric: Starting trust-region size

maxBoundCount

Numeric: Maximum number of tries to decrease initial trust-region size

algorithm

String: name of fitting algorithm to employ; default is `ccd`

-

Todo: Describe convegence types

- -

Value

- -

A Cyclops control object of class inheriting from "cyclopsControl" for use with fitCyclopsModel.

- -

Examples

-
#Generate some simulated data: -sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, - model = "poisson") -
#> Sparseness = 75.2 %
cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", - addIntercept = TRUE) -
#> Sorting covariates by covariateId and rowId
-#Define the prior and control objects to use cross-validation for finding the -#optimal hyperparameter: -prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE) -control <- createControl(cvType = "auto", noiseLevel = "quiet") - -#Fit the model -fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control) -
#> Using cross-validation selector type byRow -#> Performing 10-fold cross-validation [seed = 1623936644] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100 -#> Using 1 thread(s) -#> Starting var = 0.248 (default) -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #1 Rep #1 pred log like = 482.873 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #2 Rep #1 pred log like = 582.911 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #3 Rep #1 pred log like = 465.503 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #4 Rep #1 pred log like = 383.186 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #5 Rep #1 pred log like = 481.628 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #6 Rep #1 pred log like = 466.766 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #7 Rep #1 pred log like = 495.382 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #8 Rep #1 pred log like = 439.733 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #9 Rep #1 pred log like = 472.325 -#> Running at Laplace(2.83981) None Grid-point #1 at 0.248 Fold #10 Rep #1 pred log like = 454.301 -#> AvgPred = 472.461 with stdev = 47.2957 -#> Completed at 0.248 -#> Next point at 2.48 with value 0 and continue = 1 -#> search[ 0.248 ] = 472.461(47.2957) -#> -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #1 Rep #1 pred log like = 482.828 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #2 Rep #1 pred log like = 582.903 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #3 Rep #1 pred log like = 465.476 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #4 Rep #1 pred log like = 383.118 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #5 Rep #1 pred log like = 481.674 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #6 Rep #1 pred log like = 466.739 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #7 Rep #1 pred log like = 495.382 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #8 Rep #1 pred log like = 439.76 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #9 Rep #1 pred log like = 472.319 -#> Running at Laplace(0.898027) None Grid-point #2 at 2.48 Fold #10 Rep #1 pred log like = 454.298 -#> AvgPred = 472.45 with stdev = 47.3054 -#> Completed at 2.48 -#> Next point at 0.0248 with value 0 and continue = 1 -#> search[ 0.248 ] = 472.461(47.2957) -#> search[ 2.48 ] = 472.45(47.3054) -#> -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #1 Rep #1 pred log like = 483.009 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #2 Rep #1 pred log like = 582.96 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #3 Rep #1 pred log like = 465.584 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #4 Rep #1 pred log like = 383.357 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #5 Rep #1 pred log like = 481.397 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #6 Rep #1 pred log like = 466.848 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #7 Rep #1 pred log like = 495.378 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #8 Rep #1 pred log like = 439.667 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #9 Rep #1 pred log like = 472.339 -#> Running at Laplace(8.98027) None Grid-point #3 at 0.0248 Fold #10 Rep #1 pred log like = 454.307 -#> AvgPred = 472.485 with stdev = 47.2754 -#> Completed at 0.0248 -#> Next point at 0.00248 with value 0 and continue = 1 -#> search[ 0.0248 ] = 472.485(47.2754) -#> search[ 0.248 ] = 472.461(47.2957) -#> search[ 2.48 ] = 472.45(47.3054) -#> -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #1 Rep #1 pred log like = 483.332 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #2 Rep #1 pred log like = 583.077 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #3 Rep #1 pred log like = 465.746 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #4 Rep #1 pred log like = 383.597 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #5 Rep #1 pred log like = 480.818 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #6 Rep #1 pred log like = 467.006 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #7 Rep #1 pred log like = 495.33 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #8 Rep #1 pred log like = 439.433 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #9 Rep #1 pred log like = 472.295 -#> Running at Laplace(28.3981) None Grid-point #4 at 0.00248 Fold #10 Rep #1 pred log like = 454.266 -#> AvgPred = 472.49 with stdev = 47.2658 -#> Completed at 0.00248 -#> Next point at 0.000248 with value 0 and continue = 1 -#> search[ 0.00248 ] = 472.49(47.2658) -#> search[ 0.0248 ] = 472.485(47.2754) -#> search[ 0.248 ] = 472.461(47.2957) -#> search[ 2.48 ] = 472.45(47.3054) -#> -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #1 Rep #1 pred log like = 483.782 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #2 Rep #1 pred log like = 583.142 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #3 Rep #1 pred log like = 465.913 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #4 Rep #1 pred log like = 383.927 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #5 Rep #1 pred log like = 480.818 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #6 Rep #1 pred log like = 466.841 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #7 Rep #1 pred log like = 495.207 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #8 Rep #1 pred log like = 439.178 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #9 Rep #1 pred log like = 472.153 -#> Running at Laplace(89.8027) None Grid-point #5 at 0.000248 Fold #10 Rep #1 pred log like = 454.135 -#> AvgPred = 472.51 with stdev = 47.2463 -#> Completed at 0.000248 -#> Next point at 2.48e-05 with value 0 and continue = 1 -#> search[ 0.000248 ] = 472.51(47.2463) -#> search[ 0.00248 ] = 472.49(47.2658) -#> search[ 0.0248 ] = 472.485(47.2754) -#> search[ 0.248 ] = 472.461(47.2957) -#> search[ 2.48 ] = 472.45(47.3054) -#> -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #1 Rep #1 pred log like = 483.782 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #2 Rep #1 pred log like = 583.142 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #3 Rep #1 pred log like = 465.913 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #4 Rep #1 pred log like = 383.927 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #5 Rep #1 pred log like = 480.818 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #6 Rep #1 pred log like = 466.841 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #7 Rep #1 pred log like = 495.207 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #8 Rep #1 pred log like = 439.178 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #9 Rep #1 pred log like = 472.153 -#> Running at Laplace(283.981) None Grid-point #6 at 2.48e-05 Fold #10 Rep #1 pred log like = 454.135 -#> AvgPred = 472.51 with stdev = 47.2463 -#> Completed at 2.48e-05 -#> Next point at 6.5199e-08 with value 472.521 and continue = 0 -#> search[ 2.48e-05 ] = 472.51(47.2463) -#> search[ 0.000248 ] = 472.51(47.2463) -#> search[ 0.00248 ] = 472.49(47.2658) -#> search[ 0.0248 ] = 472.485(47.2754) -#> search[ 0.248 ] = 472.461(47.2957) -#> search[ 2.48 ] = 472.45(47.3054) -#> -#> -#> Maximum predicted log likelihood (472.521) estimated at: -#> 6.5199e-08 (variance) -#> 5538.53 (lambda) -#> -#> Fitting model at optimal hyperparameter -#> Using prior: Laplace(5538.53) None
-#Find out what the optimal hyperparameter was: -getHyperParameter(fit) -
#> [1] 6.519902e-08
-#Extract the current log-likelihood, and coefficients -logLik(fit) -
#> 'log Lik.' -2056.259 (df=3)
coef(fit) -
#> (Intercept) 1 2 -#> -3.850744 0.000000 0.000000
-#We can only retrieve the confidence interval for unregularized coefficients: -confint(fit, c(0)) -
#> Using 1 thread(s)
#> covariate 2.5 % 97.5 % evaluations -#> [1,] 0 -3.877542 -3.82417 24
+the average number of rows per stratum is smaller than the number of strata.

+ + +
initialBound
+

Numeric: Starting trust-region size

+ + +
maxBoundCount
+

Numeric: Maximum number of tries to decrease initial trust-region size

+ + +
algorithm
+

String: name of fitting algorithm to employ; default is ccd

+

Todo: Describe convegence types

+ +
+
+

Value

+ + +

A Cyclops control object of class inheriting from "cyclopsControl" for use with fitCyclopsModel.

+
+ +
+

Examples

+
#Generate some simulated data:
+sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, 
+                           model = "poisson")
+#> Sparseness = 75.05 %
+cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", 
+                                    addIntercept = TRUE)
+#> Sorting covariates by covariateId and rowId
+
+#Define the prior and control objects to use cross-validation for finding the 
+#optimal hyperparameter:
+prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE)
+control <- createControl(cvType = "auto", noiseLevel = "quiet")
+
+#Fit the model
+fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control)  
+#> Using cross-validation selector type byRow
+#> Performing 10-fold cross-validation [seed = 1698757933] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100
+#> Using 1 thread(s)
+#> Starting var = 0.2495 (default)
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #1 Rep #1 pred log like = 693.612
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #2 Rep #1 pred log like = 727.871
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #3 Rep #1 pred log like = 856.472
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #4 Rep #1 pred log like = 872.52
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #5 Rep #1 pred log like = 757.649
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #6 Rep #1 pred log like = 752.08
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #7 Rep #1 pred log like = 777.327
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #8 Rep #1 pred log like = 670.9
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #9 Rep #1 pred log like = 778.766
+#> Running at Laplace(2.83126) None  Grid-point #1 at 0.2495 	Fold #10 Rep #1 pred log like = 958.317
+#> AvgPred = 784.551 with stdev = 83.2879
+#> Completed at 0.2495
+#> Next point at 2.495 with value 0 and continue = 1
+#> search[ 0.2495 ] = 784.551(83.2879)
+#> 
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #1 Rep #1 pred log like = 693.629
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #2 Rep #1 pred log like = 727.901
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #3 Rep #1 pred log like = 856.465
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #4 Rep #1 pred log like = 872.541
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #5 Rep #1 pred log like = 757.617
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #6 Rep #1 pred log like = 752.117
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #7 Rep #1 pred log like = 777.31
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #8 Rep #1 pred log like = 670.913
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #9 Rep #1 pred log like = 778.729
+#> Running at Laplace(0.895323) None  Grid-point #2 at 2.495 	Fold #10 Rep #1 pred log like = 958.301
+#> AvgPred = 784.552 with stdev = 83.2805
+#> Completed at 2.495
+#> Next point at 24.95 with value 0 and continue = 1
+#> search[ 0.2495 ] = 784.551(83.2879)
+#> search[ 2.495 ] = 784.552(83.2805)
+#> 
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #1 Rep #1 pred log like = 693.634
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #2 Rep #1 pred log like = 727.911
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #3 Rep #1 pred log like = 856.462
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #4 Rep #1 pred log like = 872.547
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #5 Rep #1 pred log like = 757.606
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #6 Rep #1 pred log like = 752.129
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #7 Rep #1 pred log like = 777.305
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #8 Rep #1 pred log like = 670.917
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #9 Rep #1 pred log like = 778.718
+#> Running at Laplace(0.283126) None  Grid-point #3 at 24.95 	Fold #10 Rep #1 pred log like = 958.296
+#> AvgPred = 784.552 with stdev = 83.2781
+#> Completed at 24.95
+#> Next point at 249.5 with value 0 and continue = 1
+#> search[ 0.2495 ] = 784.551(83.2879)
+#> search[ 2.495 ] = 784.552(83.2805)
+#> search[ 24.95 ] = 784.552(83.2781)
+#> 
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #1 Rep #1 pred log like = 693.635
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #2 Rep #1 pred log like = 727.913
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #3 Rep #1 pred log like = 856.461
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #4 Rep #1 pred log like = 872.549
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #5 Rep #1 pred log like = 757.603
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #6 Rep #1 pred log like = 752.132
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #7 Rep #1 pred log like = 777.303
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #8 Rep #1 pred log like = 670.918
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #9 Rep #1 pred log like = 778.714
+#> Running at Laplace(0.0895323) None  Grid-point #4 at 249.5 	Fold #10 Rep #1 pred log like = 958.294
+#> AvgPred = 784.552 with stdev = 83.2774
+#> Completed at 249.5
+#> Next point at 2495 with value 0 and continue = 1
+#> search[ 0.2495 ] = 784.551(83.2879)
+#> search[ 2.495 ] = 784.552(83.2805)
+#> search[ 24.95 ] = 784.552(83.2781)
+#> search[ 249.5 ] = 784.552(83.2774)
+#> 
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #1 Rep #1 pred log like = 693.636
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #2 Rep #1 pred log like = 727.914
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #3 Rep #1 pred log like = 856.461
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #4 Rep #1 pred log like = 872.55
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #5 Rep #1 pred log like = 757.602
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #6 Rep #1 pred log like = 752.133
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #7 Rep #1 pred log like = 777.302
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #8 Rep #1 pred log like = 670.918
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #9 Rep #1 pred log like = 778.713
+#> Running at Laplace(0.0283126) None  Grid-point #5 at 2495 	Fold #10 Rep #1 pred log like = 958.294
+#> AvgPred = 784.552 with stdev = 83.2771
+#> Completed at 2495
+#> Next point at 146.811 with value 784.553 and continue = 0
+#> search[ 0.2495 ] = 784.551(83.2879)
+#> search[ 2.495 ] = 784.552(83.2805)
+#> search[ 24.95 ] = 784.552(83.2781)
+#> search[ 249.5 ] = 784.552(83.2774)
+#> search[ 2495 ] = 784.552(83.2771)
+#> 
+#> 
+#> Maximum predicted log likelihood (784.553) estimated at:
+#> 	146.811 (variance)
+#> 	0.116718 (lambda)
+#> 
+#> Fitting model at optimal hyperparameter
+#> Using prior: Laplace(0.116718) None 
+
+#Find out what the optimal hyperparameter was:
+getHyperParameter(fit)
+#> [1] 146.8106
+
+#Extract the current log-likelihood, and coefficients
+logLik(fit)
+#> 'log Lik.' -2194.845 (df=3)
+coef(fit)
+#> (Intercept)           1           2 
+#> -3.56117384  0.03211331 -0.01937822 
+
+#We can only retrieve the confidence interval for unregularized coefficients:
+confint(fit, c(0))
+#> Using 1 thread(s)
+#>             covariate     2.5 %    97.5 % evaluations
+#> (Intercept)         0 -3.590514 -3.532095          22
+
+
+
-
- +
- - + + diff --git a/docs/reference/createCyclopsData.html b/docs/reference/createCyclopsData.html index 4839b080..9ce426af 100644 --- a/docs/reference/createCyclopsData.html +++ b/docs/reference/createCyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Cyclops data object — createCyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Cyclops data object — createCyclopsData • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,196 +55,186 @@

Create a Cyclops data object

createCyclopsData creates a Cyclops data object from an R formula or data matrices.

-
createCyclopsData(
-  formula,
-  sparseFormula,
-  indicatorFormula,
-  modelType,
-  data,
-  subset = NULL,
-  weights = NULL,
-  censorWeights = NULL,
-  offset = NULL,
-  time = NULL,
-  pid = NULL,
-  y = NULL,
-  type = NULL,
-  dx = NULL,
-  sx = NULL,
-  ix = NULL,
-  model = FALSE,
-  normalize = NULL,
-  floatingPoint = 64,
-  method = "cyclops.fit"
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
formula

An object of class "formula" that provides a symbolic description of the numerically dense model response and terms.

sparseFormula

An object of class "formula" that provides a symbolic description of numerically sparse model terms.

indicatorFormula

An object of class "formula" that provides a symbolic description of {0,1} model terms.

modelType

character string: Valid types are listed below.

data

An optional data frame, list or environment containing the variables in the model.

subset

Currently unused

weights

Currently unused

censorWeights

Vector of subject-specific censoring weights (between 0 and 1). Currently only supported in modelType = "fgr".

offset

Currently unused

time

Currently undocumented

pid

Optional vector of integer stratum identifiers. If supplied, all rows must be sorted by increasing identifiers

y

Currently undocumented

type

Currently undocumented

dx

Optional dense "Matrix" of covariates

sx

Optional sparse "Matrix" of covariates

ix

Optional {0,1} "Matrix" of covariates

model

Currently undocumented

normalize

String: Name of normalization for all non-indicator covariates (possible values: stdev, max, median)

floatingPoint

Integer: Floating-point representation size (32 or 64)

method

Currently undocumented

- -

Value

- -

A list that contains a Cyclops model data object pointer and an operation duration

-

Details

- -

This function creates a Cyclops model data object from R "formula" or directly from +

+
createCyclopsData(
+  formula,
+  sparseFormula,
+  indicatorFormula,
+  modelType,
+  data,
+  subset = NULL,
+  weights = NULL,
+  censorWeights = NULL,
+  offset = NULL,
+  time = NULL,
+  pid = NULL,
+  y = NULL,
+  type = NULL,
+  dx = NULL,
+  sx = NULL,
+  ix = NULL,
+  model = FALSE,
+  normalize = NULL,
+  floatingPoint = 64,
+  method = "cyclops.fit"
+)
+
+ +
+

Arguments

+
formula
+

An object of class "formula" that provides a symbolic description of the numerically dense model response and terms.

+ + +
sparseFormula
+

An object of class "formula" that provides a symbolic description of numerically sparse model terms.

+ + +
indicatorFormula
+

An object of class "formula" that provides a symbolic description of {0,1} model terms.

+ + +
modelType
+

character string: Valid types are listed below.

+ + +
data
+

An optional data frame, list or environment containing the variables in the model.

+ + +
subset
+

Currently unused

+ + +
weights
+

Currently unused

+ + +
censorWeights
+

Vector of subject-specific censoring weights (between 0 and 1). Currently only supported in modelType = "fgr".

+ + +
offset
+

Currently unused

+ + +
time
+

Currently undocumented

+ + +
pid
+

Optional vector of integer stratum identifiers. If supplied, all rows must be sorted by increasing identifiers

+ + +
y
+

Currently undocumented

+ + +
type
+

Currently undocumented

+ + +
dx
+

Optional dense "Matrix" of covariates

+ + +
sx
+

Optional sparse "Matrix" of covariates

+ + +
ix
+

Optional {0,1} "Matrix" of covariates

+ + +
model
+

Currently undocumented

+ + +
normalize
+

String: Name of normalization for all non-indicator covariates (possible values: stdev, max, median)

+ + +
floatingPoint
+

Integer: Floating-point representation size (32 or 64)

+ + +
method
+

Currently undocumented

+ +
+
+

Value

+ + +

A list that contains a Cyclops model data object pointer and an operation duration

+
+
+

Details

+

This function creates a Cyclops model data object from R "formula" or directly from numeric vectors and matrices to define the model response and covariates. -If specifying a model using a "formula", then the left-hand side define the model response and the +If specifying a model using a "formula", then the left-hand side define the model response and the right-hand side defines dense covariate terms. Objects provided with "sparseFormula" and "indicatorFormula" must be include left-hand side responses and terms are coersed into sparse and indicator representations for computational efficiency.

-

Items to discuss: -* Only use formula or (y,dx,...) -* stratum() in formula -* offset() in formula -* when "stratum" (renamed from pid) are necessary -* when "time" are necessary

-

Models

- +

Items to discuss:

  • Only use formula or (y,dx,...)

  • +
  • stratum() in formula

  • +
  • offset() in formula

  • +
  • when "stratum" (renamed from pid) are necessary

  • +
  • when "time" are necessary

  • +
+
+

Models

-

Currently supported model types are:

- - - - - - - - -
"ls"Least squares
"pr"Poisson regression
"lr"Logistic regression
"clr"Conditional logistic regression
"cpr"Conditional Poisson regression
"sccs"Self-controlled case series
"cox"Cox proportional hazards regression
"fgr"Fine-Gray proportional subdistribution hazards regression
- - - -

Examples

-
## Dobson (1990) Page 93: Randomized Controlled Trial : -counts <- c(18, 17, 15, 20, 10, 20, 25, 13, 12) -outcome <- gl(3, 1, 9) -treatment <- gl(3, 3) -cyclopsData <- createCyclopsData( - counts ~ outcome + treatment, - modelType = "pr") -cyclopsFit <- fitCyclopsModel(cyclopsData) - -cyclopsData2 <- createCyclopsData( - counts ~ outcome, - indicatorFormula = ~ treatment, - modelType = "pr") -summary(cyclopsData2) -
#> covariateId nzCount nzMean nzVar type -#> (Intercept) 1 9 1 0 dense -#> outcome2 2 3 1 0 dense -#> outcome3 3 3 1 0 dense -#> treatment2 4 3 1 0 indicator -#> treatment3 5 3 1 0 indicator
cyclopsFit2 <- fitCyclopsModel(cyclopsData2) - -
+

Currently supported model types are:

"ls"Least squares
"pr"Poisson regression
"lr"Logistic regression
"clr"Conditional logistic regression
"cpr"Conditional Poisson regression
"sccs"Self-controlled case series
"cox"Cox proportional hazards regression
"fgr"Fine-Gray proportional subdistribution hazards regression
+ +
+

Examples

+
## Dobson (1990) Page 93: Randomized Controlled Trial :
+counts <- c(18, 17, 15, 20, 10, 20, 25, 13, 12)
+outcome <- gl(3, 1, 9)
+treatment <- gl(3, 3)
+cyclopsData <- createCyclopsData(
+     counts ~ outcome + treatment,
+     modelType = "pr")
+cyclopsFit <- fitCyclopsModel(cyclopsData)
+
+cyclopsData2 <- createCyclopsData(
+     counts ~ outcome,
+     indicatorFormula = ~ treatment,
+     modelType = "pr")
+summary(cyclopsData2)
+#>             covariateId nzCount nzMean nzVar      type
+#> (Intercept)           1       9      1     0     dense
+#> outcome2              2       3      1     0     dense
+#> outcome3              3       3      1     0     dense
+#> treatment2            4       3      1     0 indicator
+#> treatment3            5       3      1     0 indicator
+cyclopsFit2 <- fitCyclopsModel(cyclopsData2)
+
+
+
+
-
- +
- - + + diff --git a/docs/reference/createNonSeparablePrior.html b/docs/reference/createNonSeparablePrior.html index af45b747..4688f2ca 100644 --- a/docs/reference/createNonSeparablePrior.html +++ b/docs/reference/createNonSeparablePrior.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Cyclops prior object that returns the MLE of non-separable coefficients — createNonSeparablePrior • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Cyclops prior object that returns the MLE of non-separable coefficients — createNonSeparablePrior • Cyclops - - + + - - -
-
- -
- -
+
-

createNonSeparablePrior creates a Cyclops prior object for use with fitCyclopsModel.

+

createNonSeparablePrior creates a Cyclops prior object for use with fitCyclopsModel.

-
createNonSeparablePrior(maxIterations = 10, ...)
+
+
createNonSeparablePrior(maxIterations = 10, ...)
+
-

Arguments

- - - - - - - - - - -
maxIterations

Numeric: maximum iterations to achieve convergence

...

Additional argument(s) for fitCyclopsModel

+
+

Arguments

+
maxIterations
+

Numeric: maximum iterations to achieve convergence

-

Value

-

A Cyclops prior object of class inheriting from -"cyclopsPrior" for use with fitCyclopsModel.

+
...
+

Additional argument(s) for fitCyclopsModel

-

Examples

-
prior <- createNonSeparablePrior() +
+
+

Value

+ -
+

A Cyclops prior object of class inheriting from +"cyclopsPrior" for use with fitCyclopsModel.

+
+ +
+

Examples

+
prior <- createNonSeparablePrior()
+
+
+
+
-
- +
- - + + diff --git a/docs/reference/createParameterizedPrior.html b/docs/reference/createParameterizedPrior.html index ca805b29..1ed262cc 100644 --- a/docs/reference/createParameterizedPrior.html +++ b/docs/reference/createParameterizedPrior.html @@ -1,68 +1,13 @@ - - - - - - - -Create a Cyclops parameterized prior object — createParameterizedPrior • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Cyclops parameterized prior object — createParameterizedPrior • Cyclops - - + + - - -
-
- -
- -
+
-

createParameterizedPrior creates a Cyclops prior object for use with fitCyclopsModel +

createParameterizedPrior creates a Cyclops prior object for use with fitCyclopsModel in which arbitrary R functions parameterize the prior location and variance.

-
createParameterizedPrior(
-  priorType,
-  parameterize,
-  values,
-  useCrossValidation = FALSE,
-  forceIntercept = FALSE
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
priorType

Character vector: specifies prior distribution. See below for options

parameterize

Function list: parameterizes location and variance

values

Numeric vector: initial parameter values

useCrossValidation

Logical: Perform cross-validation to determine parameters.

forceIntercept

Logical: Force intercept coefficient into prior

- -

Value

- -

A Cyclops prior object of class inheriting from "cyclopsPrior" and "cyclopsFunctionalPrior" -for use with fitCyclopsModel.

+
+
createParameterizedPrior(
+  priorType,
+  parameterize,
+  values,
+  useCrossValidation = FALSE,
+  forceIntercept = FALSE
+)
+
+ +
+

Arguments

+
priorType
+

Character vector: specifies prior distribution. See below for options

+ + +
parameterize
+

Function list: parameterizes location and variance

+ + +
values
+

Numeric vector: initial parameter values

+ + +
useCrossValidation
+

Logical: Perform cross-validation to determine parameters.

+ + +
forceIntercept
+

Logical: Force intercept coefficient into prior

+ +
+
+

Value

+ + +

A Cyclops prior object of class inheriting from "cyclopsPrior" and "cyclopsFunctionalPrior"

+ + +

for use with fitCyclopsModel.

+
+
-
- +
- - + + diff --git a/docs/reference/createPrior.html b/docs/reference/createPrior.html index b2529006..e8aaf3b1 100644 --- a/docs/reference/createPrior.html +++ b/docs/reference/createPrior.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Cyclops prior object — createPrior • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Cyclops prior object — createPrior • Cyclops - - - - + + -
-
- -
- -
+
-

createPrior creates a Cyclops prior object for use with fitCyclopsModel.

+

createPrior creates a Cyclops prior object for use with fitCyclopsModel.

-
createPrior(
-  priorType,
-  variance = 1,
-  exclude = c(),
-  graph = NULL,
-  neighborhood = NULL,
-  useCrossValidation = FALSE,
-  forceIntercept = FALSE
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
priorType

Character: specifies prior distribution. See below for options

variance

Numeric: prior distribution variance

exclude

A vector of numbers or covariateId names to exclude from prior

graph

Child-to-parent mapping for a hierarchical prior

neighborhood

A list of first-order neighborhoods for a partially fused prior

useCrossValidation

Logical: Perform cross-validation to determine prior variance.

forceIntercept

Logical: Force intercept coefficient into prior

- -

Value

- -

A Cyclops prior object of class inheriting from "cyclopsPrior" for use with fitCyclopsModel.

-

Prior types

+
+
createPrior(
+  priorType,
+  variance = 1,
+  exclude = c(),
+  graph = NULL,
+  neighborhood = NULL,
+  useCrossValidation = FALSE,
+  forceIntercept = FALSE
+)
+
+ +
+

Arguments

+
priorType
+

Character: specifies prior distribution. See below for options

+ + +
variance
+

Numeric: prior distribution variance

+ + +
exclude
+

A vector of numbers or covariateId names to exclude from prior

+ + +
graph
+

Child-to-parent mapping for a hierarchical prior

+ +
neighborhood
+

A list of first-order neighborhoods for a partially fused prior

+ + +
useCrossValidation
+

Logical: Perform cross-validation to determine prior variance.

+ + +
forceIntercept
+

Logical: Force intercept coefficient into prior

+ +
+
+

Value

+ + +

A Cyclops prior object of class inheriting from "cyclopsPrior" for use with fitCyclopsModel.

+
+
+

Prior types

@@ -179,667 +113,124 @@

"lambda" per observation. See "glmnet", for example.

variance = 2 * / (nobs * lambda)^2 or lambda = sqrt(2 / variance) / nobs

+

-

Examples

-
#Generate some simulated data: -sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, - model = "poisson") -
#> Sparseness = 75.8 %
cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", - addIntercept = TRUE) -
#> Sorting covariates by covariateId and rowId
-#Define the prior and control objects to use cross-validation for finding the -#optimal hyperparameter: -prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE) -control <- createControl(cvType = "auto", noiseLevel = "quiet") - -#Fit the model -fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control) -
#> Using cross-validation selector type byRow -#> Performing 10-fold cross-validation [seed = 1623936645] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100 -#> Using 1 thread(s) -#> Starting var = 0.242 (default) -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #1 Rep #1 pred log like = 661.9 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #2 Rep #1 pred log like = 635.024 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #3 Rep #1 pred log like = 850.057 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #4 Rep #1 pred log like = 914.669 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #5 Rep #1 pred log like = 759.963 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #6 Rep #1 pred log like = 779.161 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #7 Rep #1 pred log like = 791.408 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #9 Rep #1 pred log like = 848.093 -#> Running at Laplace(2.8748) None Grid-point #1 at 0.242 Fold #10 Rep #1 pred log like = 706 -#> AvgPred = 783.141 with stdev = 89.2243 -#> Completed at 0.242 -#> Next point at 2.42 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #1 Rep #1 pred log like = 661.928 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #2 Rep #1 pred log like = 634.993 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #3 Rep #1 pred log like = 850.119 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #4 Rep #1 pred log like = 914.653 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #5 Rep #1 pred log like = 759.919 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #6 Rep #1 pred log like = 779.115 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #7 Rep #1 pred log like = 791.438 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #9 Rep #1 pred log like = 848.112 -#> Running at Laplace(0.909091) None Grid-point #2 at 2.42 Fold #10 Rep #1 pred log like = 706.007 -#> AvgPred = 783.142 with stdev = 89.2304 -#> Completed at 2.42 -#> Next point at 24.2 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #1 Rep #1 pred log like = 661.937 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #2 Rep #1 pred log like = 634.983 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #3 Rep #1 pred log like = 850.139 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #4 Rep #1 pred log like = 914.647 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #5 Rep #1 pred log like = 759.905 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #6 Rep #1 pred log like = 779.1 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #7 Rep #1 pred log like = 791.448 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #9 Rep #1 pred log like = 848.118 -#> Running at Laplace(0.28748) None Grid-point #3 at 24.2 Fold #10 Rep #1 pred log like = 706.009 -#> AvgPred = 783.142 with stdev = 89.2323 -#> Completed at 24.2 -#> Next point at 242 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #1 Rep #1 pred log like = 661.939 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #2 Rep #1 pred log like = 634.98 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #3 Rep #1 pred log like = 850.145 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #4 Rep #1 pred log like = 914.646 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #5 Rep #1 pred log like = 759.9 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #6 Rep #1 pred log like = 779.096 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #7 Rep #1 pred log like = 791.451 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #9 Rep #1 pred log like = 848.12 -#> Running at Laplace(0.0909091) None Grid-point #4 at 242 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.233 -#> Completed at 242 -#> Next point at 2420 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #1 Rep #1 pred log like = 661.94 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #2 Rep #1 pred log like = 634.979 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #3 Rep #1 pred log like = 850.147 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #5 Rep #1 pred log like = 759.899 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(0.028748) None Grid-point #5 at 2420 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2420 -#> Next point at 24200 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #2 Rep #1 pred log like = 634.979 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(0.00909091) None Grid-point #6 at 24200 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 24200 -#> Next point at 242000 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(0.0028748) None Grid-point #7 at 242000 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 242000 -#> Next point at 2.42e+06 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(0.000909091) None Grid-point #8 at 2.42e+06 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+06 -#> Next point at 2.42e+07 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(0.00028748) None Grid-point #9 at 2.42e+07 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+07 -#> Next point at 2.42e+08 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-05) None Grid-point #10 at 2.42e+08 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+08 -#> Next point at 2.42e+09 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-05) None Grid-point #11 at 2.42e+09 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+09 -#> Next point at 2.42e+10 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-06) None Grid-point #12 at 2.42e+10 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+10 -#> Next point at 2.42e+11 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-06) None Grid-point #13 at 2.42e+11 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+11 -#> Next point at 2.42e+12 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-07) None Grid-point #14 at 2.42e+12 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+12 -#> Next point at 2.42e+13 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-07) None Grid-point #15 at 2.42e+13 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+13 -#> Next point at 2.42e+14 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-08) None Grid-point #16 at 2.42e+14 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+14 -#> Next point at 2.42e+15 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-08) None Grid-point #17 at 2.42e+15 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+15 -#> Next point at 2.42e+16 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-09) None Grid-point #18 at 2.42e+16 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+16 -#> Next point at 2.42e+17 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> search[ 2.42e+16 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-09) None Grid-point #19 at 2.42e+17 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+17 -#> Next point at 2.42e+18 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> search[ 2.42e+16 ] = 783.143(89.2332) -#> search[ 2.42e+17 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-10) None Grid-point #20 at 2.42e+18 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+18 -#> Next point at 2.42e+19 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> search[ 2.42e+16 ] = 783.143(89.2332) -#> search[ 2.42e+17 ] = 783.143(89.2332) -#> search[ 2.42e+18 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-10) None Grid-point #21 at 2.42e+19 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+19 -#> Next point at 2.42e+20 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> search[ 2.42e+16 ] = 783.143(89.2332) -#> search[ 2.42e+17 ] = 783.143(89.2332) -#> search[ 2.42e+18 ] = 783.143(89.2332) -#> search[ 2.42e+19 ] = 783.143(89.2332) -#> -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(9.09091e-11) None Grid-point #22 at 2.42e+20 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+20 -#> Next point at 2.42e+21 with value 0 and continue = 1 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> search[ 2.42e+16 ] = 783.143(89.2332) -#> search[ 2.42e+17 ] = 783.143(89.2332) -#> search[ 2.42e+18 ] = 783.143(89.2332) -#> search[ 2.42e+19 ] = 783.143(89.2332) -#> search[ 2.42e+20 ] = 783.143(89.2332) -#> -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #1 Rep #1 pred log like = 661.941 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #2 Rep #1 pred log like = 634.978 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #3 Rep #1 pred log like = 850.148 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #4 Rep #1 pred log like = 914.645 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #5 Rep #1 pred log like = 759.898 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #6 Rep #1 pred log like = 779.094 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #7 Rep #1 pred log like = 791.452 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #8 Rep #1 pred log like = 885.139 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #9 Rep #1 pred log like = 848.121 -#> Running at Laplace(2.8748e-11) None Grid-point #23 at 2.42e+21 Fold #10 Rep #1 pred log like = 706.01 -#> AvgPred = 783.143 with stdev = 89.2332 -#> Completed at 2.42e+21 -#> Next point at 9.51098e+12 with value 783.143 and continue = 0 -#> search[ 0.242 ] = 783.141(89.2243) -#> search[ 2.42 ] = 783.142(89.2304) -#> search[ 24.2 ] = 783.142(89.2323) -#> search[ 242 ] = 783.143(89.233) -#> search[ 2420 ] = 783.143(89.2332) -#> search[ 24200 ] = 783.143(89.2332) -#> search[ 242000 ] = 783.143(89.2332) -#> search[ 2.42e+06 ] = 783.143(89.2332) -#> search[ 2.42e+07 ] = 783.143(89.2332) -#> search[ 2.42e+08 ] = 783.143(89.2332) -#> search[ 2.42e+09 ] = 783.143(89.2332) -#> search[ 2.42e+10 ] = 783.143(89.2332) -#> search[ 2.42e+11 ] = 783.143(89.2332) -#> search[ 2.42e+12 ] = 783.143(89.2332) -#> search[ 2.42e+13 ] = 783.143(89.2332) -#> search[ 2.42e+14 ] = 783.143(89.2332) -#> search[ 2.42e+15 ] = 783.143(89.2332) -#> search[ 2.42e+16 ] = 783.143(89.2332) -#> search[ 2.42e+17 ] = 783.143(89.2332) -#> search[ 2.42e+18 ] = 783.143(89.2332) -#> search[ 2.42e+19 ] = 783.143(89.2332) -#> search[ 2.42e+20 ] = 783.143(89.2332) -#> search[ 2.42e+21 ] = 783.143(89.2332) -#> -#> -#> Maximum predicted log likelihood (783.143) estimated at: -#> 9.51098e+12 (variance) -#> 4.58566e-07 (lambda) -#> -#> Fitting model at optimal hyperparameter -#> Using prior: Laplace(4.58566e-07) None
-#Find out what the optimal hyperparameter was: -getHyperParameter(fit) -
#> [1] 9.510983e+12
-#Extract the current log-likelihood, and coefficients -logLik(fit) -
#> 'log Lik.' -2207.566 (df=3)
coef(fit) -
#> (Intercept) 1 2 -#> -3.58685740 0.05610044 -0.02769318
-#We can only retrieve the confidence interval for unregularized coefficients: -confint(fit, c(0)) -
#> Using 1 thread(s)
#> covariate 2.5 % 97.5 % evaluations -#> [1,] 0 -3.616605 -3.557373 22
+
+

Examples

+
#Generate some simulated data:
+sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, 
+                           model = "poisson")
+#> Sparseness = 76.2 %
+cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", 
+                                    addIntercept = TRUE)
+#> Sorting covariates by covariateId and rowId
+
+#Define the prior and control objects to use cross-validation for finding the 
+#optimal hyperparameter:
+prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE)
+control <- createControl(cvType = "auto", noiseLevel = "quiet")
+
+#Fit the model
+fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control)  
+#> Using cross-validation selector type byRow
+#> Performing 10-fold cross-validation [seed = 1698757934] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100
+#> Using 1 thread(s)
+#> Starting var = 0.238 (default)
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #1 Rep #1 pred log like = 898.631
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #2 Rep #1 pred log like = 1378.61
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #3 Rep #1 pred log like = 1439.51
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #4 Rep #1 pred log like = 1227.83
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #5 Rep #1 pred log like = 1717.57
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #6 Rep #1 pred log like = 1272.34
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #7 Rep #1 pred log like = 1047.47
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #8 Rep #1 pred log like = 1266.38
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #9 Rep #1 pred log like = 1253.53
+#> Running at Laplace(2.89886) None  Grid-point #1 at 0.238 	Fold #10 Rep #1 pred log like = 1346.96
+#> AvgPred = 1284.88 with stdev = 208.341
+#> Completed at 0.238
+#> Next point at 2.38 with value 0 and continue = 1
+#> search[ 0.238 ] = 1284.88(208.341)
+#> 
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #1 Rep #1 pred log like = 898.623
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #2 Rep #1 pred log like = 1378.57
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #3 Rep #1 pred log like = 1439.49
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #4 Rep #1 pred log like = 1227.81
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #5 Rep #1 pred log like = 1717.55
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #6 Rep #1 pred log like = 1272.36
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #7 Rep #1 pred log like = 1047.55
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #8 Rep #1 pred log like = 1266.43
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #9 Rep #1 pred log like = 1253.54
+#> Running at Laplace(0.916698) None  Grid-point #2 at 2.38 	Fold #10 Rep #1 pred log like = 1346.91
+#> AvgPred = 1284.88 with stdev = 208.324
+#> Completed at 2.38
+#> Next point at 23.8 with value 0 and continue = 1
+#> search[ 0.238 ] = 1284.88(208.341)
+#> search[ 2.38 ] = 1284.88(208.324)
+#> 
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #1 Rep #1 pred log like = 898.62
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #2 Rep #1 pred log like = 1378.56
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #3 Rep #1 pred log like = 1439.48
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #4 Rep #1 pred log like = 1227.81
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #5 Rep #1 pred log like = 1717.54
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #6 Rep #1 pred log like = 1272.37
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #7 Rep #1 pred log like = 1047.58
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #8 Rep #1 pred log like = 1266.45
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #9 Rep #1 pred log like = 1253.54
+#> Running at Laplace(0.289886) None  Grid-point #3 at 23.8 	Fold #10 Rep #1 pred log like = 1346.9
+#> AvgPred = 1284.88 with stdev = 208.318
+#> Completed at 23.8
+#> Next point at 5.37835 with value 1284.88 and continue = 0
+#> search[ 0.238 ] = 1284.88(208.341)
+#> search[ 2.38 ] = 1284.88(208.324)
+#> search[ 23.8 ] = 1284.88(208.318)
+#> 
+#> 
+#> Maximum predicted log likelihood (1284.88) estimated at:
+#> 	5.37835 (variance)
+#> 	0.609804 (lambda)
+#> 
+#> Fitting model at optimal hyperparameter
+#> Using prior: Laplace(0.609804) None 
+
+#Find out what the optimal hyperparameter was:
+getHyperParameter(fit)
+#> [1] 5.37835
+
+#Extract the current log-likelihood, and coefficients
+logLik(fit)
+#> 'log Lik.' -2158.207 (df=3)
+coef(fit)
+#> (Intercept)           1           2 
+#> -3.92974607 -0.02127371  1.41692709 
+
+#We can only retrieve the confidence interval for unregularized coefficients:
+confint(fit, c(0))
+#> Using 1 thread(s)
+#>             covariate     2.5 %  97.5 % evaluations
+#> (Intercept)         0 -3.962925 -3.8969          22
+
+
+
-
- +
- - + + diff --git a/docs/reference/createWeightBasedSearchControl.html b/docs/reference/createWeightBasedSearchControl.html new file mode 100644 index 00000000..0b35f3ec --- /dev/null +++ b/docs/reference/createWeightBasedSearchControl.html @@ -0,0 +1,113 @@ + +Create a Cyclops control object that supports in- / out-of-sample hyperparameter search using weights — createWeightBasedSearchControl • Cyclops + + +
+
+ + + +
+
+ + +
+

createWeightBasedSearchControl creates a Cyclops control object for use with fitCyclopsModel +that supports hyperparameter optimization through an auto-search where weight = 1 identifies in-sample observations +and weight = 0 identifies out-of-sample observations.

+
+ +
+
createWeightBasedSearchControl(cvType = "auto", initialValue = 1, ...)
+
+ +
+

Arguments

+
cvType
+

Must equal "auto"

+ + +
initialValue
+

Initial value for auto-search parameter

+ + +
...
+

Additional parameters passed through to createControl

+ +
+
+

Value

+ + +

A Cyclops prior object of class inheriting from "cyclopsControl"

+ + +

for use with fitCyclopsModel.

+
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.7.

+
+ +
+ + + + + + + + diff --git a/docs/reference/cyclops.html b/docs/reference/cyclops.html index 53faae39..349f61d6 100644 --- a/docs/reference/cyclops.html +++ b/docs/reference/cyclops.html @@ -1,71 +1,16 @@ - - - - - - - -Cyclops: Cyclic coordinate descent for logistic, Poisson and survival analysis — cyclops • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cyclops: Cyclic coordinate descent for logistic, Poisson and survival analysis — cyclops • Cyclops - - - - - - - - - - + + - - - -
-
- -
- -
+
@@ -133,32 +65,27 @@

Cyclops: Cyclic coordinate descent for logistic, Poisson and survival analys -

+
-
- +
- - + + diff --git a/docs/reference/finalizeSqlCyclopsData.html b/docs/reference/finalizeSqlCyclopsData.html index 09794054..7bececa1 100644 --- a/docs/reference/finalizeSqlCyclopsData.html +++ b/docs/reference/finalizeSqlCyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -finalizeSqlCyclopsData — finalizeSqlCyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -finalizeSqlCyclopsData — finalizeSqlCyclopsData • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,73 +55,68 @@

finalizeSqlCyclopsData

finalizeSqlCyclopsData finalizes a Cyclops data object

-
finalizeSqlCyclopsData(
-  object,
-  addIntercept = FALSE,
-  useOffsetCovariate = NULL,
-  offsetAlreadyOnLogScale = FALSE,
-  sortCovariates = FALSE,
-  makeCovariatesDense = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
object

Cyclops data object

addIntercept

Add an intercept covariate if one was not imported through SQL

useOffsetCovariate

Specify is a covariate should be used as an offset (fixed coefficient = 1). +

+
finalizeSqlCyclopsData(
+  object,
+  addIntercept = FALSE,
+  useOffsetCovariate = NULL,
+  offsetAlreadyOnLogScale = FALSE,
+  sortCovariates = FALSE,
+  makeCovariatesDense = NULL
+)
+
+ +
+

Arguments

+
object
+

Cyclops data object

+ + +
addIntercept
+

Add an intercept covariate if one was not imported through SQL

+ + +
useOffsetCovariate
+

Specify is a covariate should be used as an offset (fixed coefficient = 1). Set option to -1 to specify the time-to-event column, -otherwise include a single numeric or character covariate name.

offsetAlreadyOnLogScale

Set to TRUE to indicate that offsets were log-transformed before importing into Cyclops data object.

sortCovariates

Sort covariates in numeric-order with intercept first if it exists.

makeCovariatesDense

List of numeric or character covariates names to densely represent in Cyclops data object. -For efficiency, we suggest making at least the intercept dense.

+otherwise include a single numeric or character covariate name.

+ + +
offsetAlreadyOnLogScale
+

Set to TRUE to indicate that offsets were log-transformed before importing into Cyclops data object.

+ +
sortCovariates
+

Sort covariates in numeric-order with intercept first if it exists.

+ + +
makeCovariatesDense
+

List of numeric or character covariates names to densely represent in Cyclops data object. +For efficiency, we suggest making at least the intercept dense.

+ +
+
- - - + + diff --git a/docs/reference/fitCyclopsModel.html b/docs/reference/fitCyclopsModel.html index ffccc03f..1be94590 100644 --- a/docs/reference/fitCyclopsModel.html +++ b/docs/reference/fitCyclopsModel.html @@ -1,67 +1,12 @@ - - - - - - - -Fit a Cyclops model — fitCyclopsModel • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Fit a Cyclops model — fitCyclopsModel • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,78 +55,80 @@

Fit a Cyclops model

fitCyclopsModel fits a Cyclops model data object

-
fitCyclopsModel(
-  cyclopsData,
-  prior = createPrior("none"),
-  control = createControl(),
-  weights = NULL,
-  forceNewObject = FALSE,
-  returnEstimates = TRUE,
-  startingCoefficients = NULL,
-  fixedCoefficients = NULL,
-  computeDevice = "native"
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cyclopsData

A Cyclops data object

prior

A prior object. More details are given below.

control

A "cyclopsControl" object constructed by createControl

weights

Vector of 0/1 weights for each data row

forceNewObject

Logical, forces the construction of a new Cyclops model fit object

returnEstimates

Logical, return regression coefficient estimates in Cyclops model fit object

startingCoefficients

Vector of starting values for optimization

fixedCoefficients

Vector of booleans indicating if coefficient should be fix

computeDevice

String: Name of compute device to employ; defaults to "native" C++ on CPU

- -

Value

- -

A list that contains a Cyclops model fit object pointer and an operation duration

-

Details

+
+
fitCyclopsModel(
+  cyclopsData,
+  prior = createPrior("none"),
+  control = createControl(),
+  weights = NULL,
+  forceNewObject = FALSE,
+  returnEstimates = TRUE,
+  startingCoefficients = NULL,
+  fixedCoefficients = NULL,
+  warnings = TRUE,
+  computeDevice = "native"
+)
+
-

This function performs numerical optimization to fit a Cyclops model data object.

-

Prior

+
+

Arguments

+
cyclopsData
+

A Cyclops data object

- -

Currently supported prior types are:

- - - -
"none"Useful for finding MLE
"laplace"L_1 regularization
"normal"L_2 regularization
+
prior
+

A prior object. More details are given below.

+ + +
control
+

A "cyclopsControl" object constructed by createControl

+ + +
weights
+

Vector of 0/1 weights for each data row

+ + +
forceNewObject
+

Logical, forces the construction of a new Cyclops model fit object

+ + +
returnEstimates
+

Logical, return regression coefficient estimates in Cyclops model fit object

+ + +
startingCoefficients
+

Vector of starting values for optimization

+ +
fixedCoefficients
+

Vector of booleans indicating if coefficient should be fix

-

References

+
warnings
+

Logical, report regularization warnings

+ + +
computeDevice
+

String: Name of compute device to employ; defaults to "native" C++ on CPU

+ +
+
+

Value

+ + +

A list that contains a Cyclops model fit object pointer and an operation duration

+
+
+

Details

+

This function performs numerical optimization to fit a Cyclops model data object.

+
+
+

Prior

+ + +

Currently supported prior types are:

"none"Useful for finding MLE
"laplace"L_1 regularization
"normal"L_2 regularization
+
+

References

Suchard MA, Simpson SE, Zorych I, Ryan P, Madigan D. Massive parallelization of serial inference algorithms for complex generalized linear models. ACM Transactions on Modeling and Computer Simulation, 23, 10, 2013.

@@ -204,50 +138,52 @@

R

Mittal S, Madigan D, Burd RS, Suchard MA. High-dimensional, massive sample-size Cox proportional hazards regression for survival analysis. Biostatistics, 15, 207-221, 2014.

+

-

Examples

-
## Dobson (1990) Page 93: Randomized Controlled Trial : -counts <- c(18,17,15,20,10,20,25,13,12) -outcome <- gl(3,1,9) -treatment <- gl(3,3) -cyclopsData <- createCyclopsData(counts ~ outcome + treatment, modelType = "pr") -cyclopsFit <- fitCyclopsModel(cyclopsData, prior = createPrior("none")) -coef(cyclopsFit) -
#> (Intercept) outcome2 outcome3 treatment2 treatment3 -#> 3.044510e+00 -4.542553e-01 -2.929871e-01 1.268003e-05 1.268003e-05
confint(cyclopsFit, c("outcome2","treatment3")) -
#> covariate 2.5 % 97.5 % evaluations -#> outcome2 2 -0.8576926 -0.06254563 22 -#> treatment3 5 -0.3931725 0.39317270 28
predict(cyclopsFit) -
#> 1 2 3 4 5 6 7 8 -#> 20.99973 13.33316 15.66647 21.00000 13.33333 15.66667 21.00000 13.33333 -#> 9 -#> 15.66667
-
+
+

Examples

+
## Dobson (1990) Page 93: Randomized Controlled Trial :
+counts <- c(18,17,15,20,10,20,25,13,12)
+outcome <- gl(3,1,9)
+treatment <- gl(3,3)
+cyclopsData <- createCyclopsData(counts ~ outcome + treatment, modelType = "pr")
+cyclopsFit <- fitCyclopsModel(cyclopsData, prior = createPrior("none"))
+coef(cyclopsFit)
+#>   (Intercept)      outcome2      outcome3    treatment2    treatment3 
+#>  3.044510e+00 -4.542553e-01 -2.929871e-01  1.268003e-05  1.268003e-05 
+confint(cyclopsFit, c("outcome2","treatment3"))
+#>            covariate      2.5 %      97.5 % evaluations
+#> outcome2           2 -0.8576926 -0.06254563          22
+#> treatment3         5 -0.3931725  0.39317270          28
+predict(cyclopsFit)
+#>        1        2        3        4        5        6        7        8 
+#> 20.99973 13.33316 15.66647 21.00000 13.33333 15.66667 21.00000 13.33333 
+#>        9 
+#> 15.66667 
+
+
+
+
- - - + + diff --git a/docs/reference/fitCyclopsSimulation.html b/docs/reference/fitCyclopsSimulation.html index 1a315f32..6f7dd885 100644 --- a/docs/reference/fitCyclopsSimulation.html +++ b/docs/reference/fitCyclopsSimulation.html @@ -1,69 +1,14 @@ - - - - - - - -Fit simulated data — fitCyclopsSimulation • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Fit simulated data — fitCyclopsSimulation • Cyclops - - - - - - - - - - + + - - - -
-
- -
- -
+
@@ -127,65 +59,60 @@

Fit simulated data

large, sparse datasets.

-
fitCyclopsSimulation(
-  sim,
-  useCyclops = TRUE,
-  model = "logistic",
-  coverage = TRUE,
-  includePenalty = FALSE
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
sim

A simulated Cyclops dataset generated via simulateCyclopsData

useCyclops

Logical: use Cyclops or a standard routine

model

String: Fitted regression model type

coverage

Logical: report coverage statistics

includePenalty

Logical: include regularized regression penalty in computing profile likelihood based confidence intervals

+
+
fitCyclopsSimulation(
+  sim,
+  useCyclops = TRUE,
+  model = "logistic",
+  coverage = TRUE,
+  includePenalty = FALSE
+)
+
+ +
+

Arguments

+
sim
+

A simulated Cyclops dataset generated via simulateCyclopsData

+
useCyclops
+

Logical: use Cyclops or a standard routine

+ + +
model
+

String: Fitted regression model type

+ + +
coverage
+

Logical: report coverage statistics

+ + +
includePenalty
+

Logical: include regularized regression penalty in computing profile likelihood based confidence intervals

+ +
+
+
- - - + + diff --git a/docs/reference/getCovariateIds.html b/docs/reference/getCovariateIds.html index 7d7c12f4..91c960cb 100644 --- a/docs/reference/getCovariateIds.html +++ b/docs/reference/getCovariateIds.html @@ -1,67 +1,12 @@ - - - - - - - -Get covariate identifiers — getCovariateIds • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get covariate identifiers — getCovariateIds • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get covariate identifiers

getCovariateIds returns a vector of integer64 covariate identifiers in a Cyclops data object

-
getCovariateIds(object)
+
+
getCovariateIds(object)
+
-

Arguments

- - - - - - -
object

A Cyclops data object

+
+

Arguments

+
object
+

A Cyclops data object

+
+
- - - + + diff --git a/docs/reference/getCovariateTypes.html b/docs/reference/getCovariateTypes.html index 147277de..0706764c 100644 --- a/docs/reference/getCovariateTypes.html +++ b/docs/reference/getCovariateTypes.html @@ -1,67 +1,12 @@ - - - - - - - -Get covariate types — getCovariateTypes • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get covariate types — getCovariateTypes • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,47 +55,42 @@

Get covariate types

getCovariateTypes returns a vector covariate types in a Cyclops data object

-
getCovariateTypes(object, covariateLabel)
+
+
getCovariateTypes(object, covariateLabel)
+
+ +
+

Arguments

+
object
+

A Cyclops data object

+ -

Arguments

- - - - - - - - - - -
object

A Cyclops data object

covariateLabel

Integer vector: covariate identifiers to return

+
covariateLabel
+

Integer vector: covariate identifiers to return

+
+
- - - + + diff --git a/docs/reference/getCrossValidationInfo.html b/docs/reference/getCrossValidationInfo.html index 874154f0..361f1128 100644 --- a/docs/reference/getCrossValidationInfo.html +++ b/docs/reference/getCrossValidationInfo.html @@ -1,67 +1,12 @@ - - - - - - - -Get cross-validation information from a Cyclops model fit — getCrossValidationInfo • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get cross-validation information from a Cyclops model fit — getCrossValidationInfo • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get cross-validation information from a Cyclops model fit

getCrossValidationInfo returns the predicted optimal cross-validation point and ordinate

-
getCrossValidationInfo(object)
+
+
getCrossValidationInfo(object)
+
-

Arguments

- - - - - - -
object

A Cyclops model fit object

+
+

Arguments

+
object
+

A Cyclops model fit object

+
+
- - - + + diff --git a/docs/reference/getCyclopsPredictiveLogLikelihood.html b/docs/reference/getCyclopsPredictiveLogLikelihood.html index 4db67f23..09256f0d 100644 --- a/docs/reference/getCyclopsPredictiveLogLikelihood.html +++ b/docs/reference/getCyclopsPredictiveLogLikelihood.html @@ -1,67 +1,12 @@ - - - - - - - -Compute predictive log-likelihood from a Cyclops model fit — getCyclopsPredictiveLogLikelihood • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Compute predictive log-likelihood from a Cyclops model fit — getCyclopsPredictiveLogLikelihood • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,50 +55,48 @@

Compute predictive log-likelihood from a Cyclops model fit

getCyclopsPredictiveLogLikelihood returns the log-likelihood of a subset of the data in a Cyclops model fit object.

-
getCyclopsPredictiveLogLikelihood(object, weights)
+
+
getCyclopsPredictiveLogLikelihood(object, weights)
+
+ +
+

Arguments

+
object
+

A Cyclops model fit object

-

Arguments

- - - - - - - - - - -
object

A Cyclops model fit object

weights

Numeric vector: vector of 0/1 identifying subset (=1) of rows from object to use in computing the log-likelihood

-

Value

+
weights
+

Numeric vector: vector of 0/1 identifying subset (=1) of rows from object to use in computing the log-likelihood

-

The predictive log-likelihood

+
+
+

Value

+ + +

The predictive log-likelihood

+
+
- - - + + diff --git a/docs/reference/getCyclopsProfileLogLikelihood.html b/docs/reference/getCyclopsProfileLogLikelihood.html index 6b2b4ae9..f901fcf2 100644 --- a/docs/reference/getCyclopsProfileLogLikelihood.html +++ b/docs/reference/getCyclopsProfileLogLikelihood.html @@ -1,67 +1,12 @@ - - - - - - - -Profile likelihood for Cyclops model parameters — getCyclopsProfileLogLikelihood • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Profile likelihood for Cyclops model parameters — getCyclopsProfileLogLikelihood • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,80 +55,78 @@

Profile likelihood for Cyclops model parameters

getCyclopsProfileLogLikelihood evaluates the profile likelihood at a grid of parameter values.

-
getCyclopsProfileLogLikelihood(
-  object,
-  parm,
-  x = NULL,
-  bounds = NULL,
-  tolerance = 0.001,
-  initialGridSize = 10,
-  includePenalty = TRUE
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
object

Fitted Cyclops model object

parm

Specification of which parameter requires profiling, -either a vector of numbers of covariateId names

x

Vector of values of the parameter

bounds

Pair of values to bound adaptive profiling

tolerance

Absolute tolerance allowed for adaptive profiling

initialGridSize

Initial grid size for adaptive profiling

includePenalty

Logical: Include regularized covariate penalty in profile

- -

Value

- -

A data frame containing the profile log likelihood. Returns NULL when the adaptive profiling fails +

+
getCyclopsProfileLogLikelihood(
+  object,
+  parm,
+  x = NULL,
+  bounds = NULL,
+  tolerance = 0.001,
+  initialGridSize = 10,
+  includePenalty = TRUE
+)
+
+ +
+

Arguments

+
object
+

Fitted Cyclops model object

+ + +
parm
+

Specification of which parameter requires profiling, +either a vector of numbers of covariateId names

+ + +
x
+

Vector of values of the parameter

+ + +
bounds
+

Pair of values to bound adaptive profiling

+ + +
tolerance
+

Absolute tolerance allowed for adaptive profiling

+ + +
initialGridSize
+

Initial grid size for adaptive profiling

+ + +
includePenalty
+

Logical: Include regularized covariate penalty in profile

+ +
+
+

Value

+ + +

A data frame containing the profile log likelihood. Returns NULL when the adaptive profiling fails to converge.

+
+
- - - + + diff --git a/docs/reference/getFineGrayWeights.html b/docs/reference/getFineGrayWeights.html index cbb03913..39546846 100644 --- a/docs/reference/getFineGrayWeights.html +++ b/docs/reference/getFineGrayWeights.html @@ -1,67 +1,12 @@ - - - - - - - -Creates a Surv object that forces in competing risks and the IPCW needed for Fine-Gray estimation. — getFineGrayWeights • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Creates a Surv object that forces in competing risks and the IPCW needed for Fine-Gray estimation. — getFineGrayWeights • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,68 +55,69 @@

Creates a Surv object that forces in competing risks and the IP

getFineGrayWeights creates a list Surv object and vector of weights required for estimation.

-
getFineGrayWeights(ftime, fstatus, cencode = 0, failcode = 1)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
ftime

Numeric: Observed event (failure) times

fstatus

Numeric: Observed event (failure) types

cencode

Numeric: Code to denote censored observations (Default is 0)

failcode

Numeric: Code to denote event of interest (Default is 1)

- -

Value

- -

A list that returns both an object of class Surv that forces in the competing risks indicators and a vector of weights needed for parameter estimation.

- -

Examples

-
ftime <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) -fstatus <- c(1, 2, 0, 1, 2, 0, 1, 2, 0, 1) -getFineGrayWeights(ftime, fstatus, cencode = 0, failcode = 1) -
#> $surv -#> [1] 1 2 3+ 4 5 6+ 7 8 9+ 10 -#> -#> $weights -#> [1] 1.000 1.000 1.000 0.875 0.875 0.875 0.700 0.700 0.700 0.350 -#>
+
+
getFineGrayWeights(ftime, fstatus, cencode = 0, failcode = 1)
+
+ +
+

Arguments

+
ftime
+

Numeric: Observed event (failure) times

+ + +
fstatus
+

Numeric: Observed event (failure) types

+ + +
cencode
+

Numeric: Code to denote censored observations (Default is 0)

+ + +
failcode
+

Numeric: Code to denote event of interest (Default is 1)

+ +
+
+

Value

+ + +

A list that returns both an object of class Surv that forces in the competing risks indicators and a vector of weights needed for parameter estimation.

+
+ +
+

Examples

+
ftime <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
+fstatus <- c(1, 2, 0, 1, 2, 0, 1, 2, 0, 1)
+getFineGrayWeights(ftime, fstatus, cencode = 0, failcode = 1)
+#> $surv
+#>  [1]  1   2   3+  4   5   6+  7   8   9+ 10 
+#> 
+#> $weights
+#>  [1] 1.000 1.000 1.000 0.875 0.875 0.875 0.700 0.700 0.700 0.350
+#> 
+
+
+
- - - + + diff --git a/docs/reference/getFloatingPointSize.html b/docs/reference/getFloatingPointSize.html index 4f99ad41..02252c17 100644 --- a/docs/reference/getFloatingPointSize.html +++ b/docs/reference/getFloatingPointSize.html @@ -1,67 +1,12 @@ - - - - - - - -Get floating point size — getFloatingPointSize • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get floating point size — getFloatingPointSize • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get floating point size

getFloatingPointSize returns the floating-point representation size in a Cyclops data object

-
getFloatingPointSize(object)
+
+
getFloatingPointSize(object)
+
-

Arguments

- - - - - - -
object

A Cyclops data object

+
+

Arguments

+
object
+

A Cyclops data object

+
+
- - - + + diff --git a/docs/reference/getHyperParameter.html b/docs/reference/getHyperParameter.html index 7a3b09a7..961106f3 100644 --- a/docs/reference/getHyperParameter.html +++ b/docs/reference/getHyperParameter.html @@ -1,67 +1,12 @@ - - - - - - - -Get hyperparameter — getHyperParameter • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get hyperparameter — getHyperParameter • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,165 +55,646 @@

Get hyperparameter

getHyperParameter returns the current hyper parameter in a Cyclops model fit object

-
getHyperParameter(object)
- -

Arguments

- - - - - - -
object

A Cyclops model fit object

- - -

Examples

-
#Generate some simulated data: -sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, - model = "poisson") -
#> Sparseness = 75.45 %
cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", - addIntercept = TRUE) -
#> Sorting covariates by covariateId and rowId
-#Define the prior and control objects to use cross-validation for finding the -#optimal hyperparameter: -prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE) -control <- createControl(cvType = "auto", noiseLevel = "quiet") +
+
getHyperParameter(object)
+
-#Fit the model -fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control) -
#> Using cross-validation selector type byRow -#> Performing 10-fold cross-validation [seed = 1623936646] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100 -#> Using 1 thread(s) -#> Starting var = 0.2455 (default) -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #1 Rep #1 pred log like = 200.993 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #2 Rep #1 pred log like = 206.093 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #3 Rep #1 pred log like = 245.023 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #4 Rep #1 pred log like = 264.254 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #5 Rep #1 pred log like = 332.052 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #6 Rep #1 pred log like = 241.658 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #7 Rep #1 pred log like = 267.085 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #8 Rep #1 pred log like = 309.134 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #9 Rep #1 pred log like = 215.561 -#> Running at Laplace(2.85423) None Grid-point #1 at 0.2455 Fold #10 Rep #1 pred log like = 236.844 -#> AvgPred = 251.87 with stdev = 40.5863 -#> Completed at 0.2455 -#> Next point at 2.455 with value 0 and continue = 1 -#> search[ 0.2455 ] = 251.87(40.5863) -#> -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #1 Rep #1 pred log like = 201.025 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #2 Rep #1 pred log like = 206.105 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #3 Rep #1 pred log like = 244.985 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #4 Rep #1 pred log like = 264.222 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #5 Rep #1 pred log like = 332.034 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #6 Rep #1 pred log like = 241.635 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #7 Rep #1 pred log like = 267.08 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #8 Rep #1 pred log like = 309.102 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #9 Rep #1 pred log like = 215.544 -#> Running at Laplace(0.902587) None Grid-point #2 at 2.455 Fold #10 Rep #1 pred log like = 236.821 -#> AvgPred = 251.855 with stdev = 40.5755 -#> Completed at 2.455 -#> Next point at 0.02455 with value 0 and continue = 1 -#> search[ 0.2455 ] = 251.87(40.5863) -#> search[ 2.455 ] = 251.855(40.5755) -#> -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #1 Rep #1 pred log like = 200.993 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #2 Rep #1 pred log like = 206.063 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #3 Rep #1 pred log like = 245.129 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #4 Rep #1 pred log like = 264.304 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #5 Rep #1 pred log like = 332.096 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #6 Rep #1 pred log like = 241.667 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #7 Rep #1 pred log like = 267.089 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #8 Rep #1 pred log like = 309.223 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #9 Rep #1 pred log like = 215.609 -#> Running at Laplace(9.02587) None Grid-point #3 at 0.02455 Fold #10 Rep #1 pred log like = 236.912 -#> AvgPred = 251.908 with stdev = 40.6039 -#> Completed at 0.02455 -#> Next point at 0.002455 with value 0 and continue = 1 -#> search[ 0.02455 ] = 251.908(40.6039) -#> search[ 0.2455 ] = 251.87(40.5863) -#> search[ 2.455 ] = 251.855(40.5755) -#> -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #1 Rep #1 pred log like = 200.993 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #2 Rep #1 pred log like = 206.03 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #3 Rep #1 pred log like = 245.18 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #4 Rep #1 pred log like = 264.306 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #5 Rep #1 pred log like = 332.076 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #6 Rep #1 pred log like = 241.668 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #7 Rep #1 pred log like = 267.058 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #8 Rep #1 pred log like = 309.405 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #9 Rep #1 pred log like = 215.596 -#> Running at Laplace(28.5423) None Grid-point #4 at 0.002455 Fold #10 Rep #1 pred log like = 237.054 -#> AvgPred = 251.936 with stdev = 40.6232 -#> Completed at 0.002455 -#> Next point at 0.0002455 with value 0 and continue = 1 -#> search[ 0.002455 ] = 251.936(40.6232) -#> search[ 0.02455 ] = 251.908(40.6039) -#> search[ 0.2455 ] = 251.87(40.5863) -#> search[ 2.455 ] = 251.855(40.5755) -#> -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #1 Rep #1 pred log like = 200.993 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #2 Rep #1 pred log like = 206.03 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #3 Rep #1 pred log like = 245.18 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #4 Rep #1 pred log like = 264.306 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #5 Rep #1 pred log like = 332.076 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #6 Rep #1 pred log like = 241.668 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #7 Rep #1 pred log like = 267.058 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #8 Rep #1 pred log like = 309.405 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #9 Rep #1 pred log like = 215.596 -#> Running at Laplace(90.2587) None Grid-point #5 at 0.0002455 Fold #10 Rep #1 pred log like = 237.054 -#> AvgPred = 251.936 with stdev = 40.6232 -#> Completed at 0.0002455 -#> Next point at 1.99853e-06 with value 251.954 and continue = 0 -#> search[ 0.0002455 ] = 251.936(40.6232) -#> search[ 0.002455 ] = 251.936(40.6232) -#> search[ 0.02455 ] = 251.908(40.6039) -#> search[ 0.2455 ] = 251.87(40.5863) -#> search[ 2.455 ] = 251.855(40.5755) -#> -#> -#> Maximum predicted log likelihood (251.954) estimated at: -#> 1.99853e-06 (variance) -#> 1000.37 (lambda) -#> -#> Fitting model at optimal hyperparameter -#> Using prior: Laplace(1000.37) None
-#Find out what the optimal hyperparameter was: -getHyperParameter(fit) -
#> [1] 1.998532e-06
-#Extract the current log-likelihood, and coefficients -logLik(fit) -
#> 'log Lik.' -1927.858 (df=3)
coef(fit) -
#> (Intercept) 1 2 -#> -4.118361 0.000000 0.000000
-#We can only retrieve the confidence interval for unregularized coefficients: -confint(fit, c(0)) -
#> Using 1 thread(s)
#> covariate 2.5 % 97.5 % evaluations -#> [1,] 0 -4.149079 -4.087942 24
+
+

Arguments

+
object
+

A Cyclops model fit object

+ +
+ +
+

Examples

+
#Generate some simulated data:
+sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, 
+                           model = "poisson")
+#> Sparseness = 73.85 %
+cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", 
+                                    addIntercept = TRUE)
+#> Sorting covariates by covariateId and rowId
+
+#Define the prior and control objects to use cross-validation for finding the 
+#optimal hyperparameter:
+prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE)
+control <- createControl(cvType = "auto", noiseLevel = "quiet")
+
+#Fit the model
+fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control)  
+#> Using cross-validation selector type byRow
+#> Performing 10-fold cross-validation [seed = 1698757937] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100
+#> Using 1 thread(s)
+#> Starting var = 0.2615 (default)
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #1 Rep #1 pred log like = 372.484
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #2 Rep #1 pred log like = 427.249
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #3 Rep #1 pred log like = 468.957
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #4 Rep #1 pred log like = 505.492
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #5 Rep #1 pred log like = 364.273
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #6 Rep #1 pred log like = 433.21
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #7 Rep #1 pred log like = 443.256
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #8 Rep #1 pred log like = 438.388
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #9 Rep #1 pred log like = 475.904
+#> Running at Laplace(2.76553) None  Grid-point #1 at 0.2615 	Fold #10 Rep #1 pred log like = 470.303
+#> AvgPred = 439.952 with stdev = 42.2492
+#> Completed at 0.2615
+#> Next point at 2.615 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> 
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #1 Rep #1 pred log like = 372.478
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #2 Rep #1 pred log like = 427.302
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #3 Rep #1 pred log like = 468.968
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #4 Rep #1 pred log like = 505.462
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #5 Rep #1 pred log like = 364.28
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #6 Rep #1 pred log like = 433.206
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #7 Rep #1 pred log like = 443.204
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #8 Rep #1 pred log like = 438.398
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #9 Rep #1 pred log like = 475.914
+#> Running at Laplace(0.874539) None  Grid-point #2 at 2.615 	Fold #10 Rep #1 pred log like = 470.313
+#> AvgPred = 439.952 with stdev = 42.2447
+#> Completed at 2.615
+#> Next point at 26.15 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> 
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #2 Rep #1 pred log like = 427.318
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #3 Rep #1 pred log like = 468.971
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #4 Rep #1 pred log like = 505.453
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #5 Rep #1 pred log like = 364.282
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #6 Rep #1 pred log like = 433.205
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #7 Rep #1 pred log like = 443.188
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #8 Rep #1 pred log like = 438.4
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #9 Rep #1 pred log like = 475.917
+#> Running at Laplace(0.276553) None  Grid-point #3 at 26.15 	Fold #10 Rep #1 pred log like = 470.316
+#> AvgPred = 439.953 with stdev = 42.243
+#> Completed at 26.15
+#> Next point at 261.5 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> 
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #2 Rep #1 pred log like = 427.323
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #4 Rep #1 pred log like = 505.45
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #5 Rep #1 pred log like = 364.282
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #7 Rep #1 pred log like = 443.182
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #8 Rep #1 pred log like = 438.401
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #9 Rep #1 pred log like = 475.917
+#> Running at Laplace(0.0874539) None  Grid-point #4 at 261.5 	Fold #10 Rep #1 pred log like = 470.317
+#> AvgPred = 439.953 with stdev = 42.2425
+#> Completed at 261.5
+#> Next point at 2615 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> 
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #4 Rep #1 pred log like = 505.449
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #5 Rep #1 pred log like = 364.282
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #7 Rep #1 pred log like = 443.181
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(0.0276553) None  Grid-point #5 at 2615 	Fold #10 Rep #1 pred log like = 470.317
+#> AvgPred = 439.953 with stdev = 42.2423
+#> Completed at 2615
+#> Next point at 26150 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> 
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #4 Rep #1 pred log like = 505.449
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(0.00874539) None  Grid-point #6 at 26150 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2423
+#> Completed at 26150
+#> Next point at 261500 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> 
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(0.00276553) None  Grid-point #7 at 261500 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 261500
+#> Next point at 2.615e+06 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(0.000874539) None  Grid-point #8 at 2.615e+06 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+06
+#> Next point at 2.615e+07 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(0.000276553) None  Grid-point #9 at 2.615e+07 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+07
+#> Next point at 2.615e+08 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-05) None  Grid-point #10 at 2.615e+08 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+08
+#> Next point at 2.615e+09 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(2.76553e-05) None  Grid-point #11 at 2.615e+09 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+09
+#> Next point at 2.615e+10 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-06) None  Grid-point #12 at 2.615e+10 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+10
+#> Next point at 2.615e+11 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(2.76553e-06) None  Grid-point #13 at 2.615e+11 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+11
+#> Next point at 2.615e+12 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-07) None  Grid-point #14 at 2.615e+12 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+12
+#> Next point at 2.615e+13 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(2.76553e-07) None  Grid-point #15 at 2.615e+13 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+13
+#> Next point at 2.615e+14 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-08) None  Grid-point #16 at 2.615e+14 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+14
+#> Next point at 2.615e+15 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(2.76553e-08) None  Grid-point #17 at 2.615e+15 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+15
+#> Next point at 2.615e+16 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> search[ 2.615e+15 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-09) None  Grid-point #18 at 2.615e+16 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+16
+#> Next point at 2.615e+17 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> search[ 2.615e+15 ] = 439.953(42.2422)
+#> search[ 2.615e+16 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(2.76553e-09) None  Grid-point #19 at 2.615e+17 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+17
+#> Next point at 2.615e+18 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> search[ 2.615e+15 ] = 439.953(42.2422)
+#> search[ 2.615e+16 ] = 439.953(42.2422)
+#> search[ 2.615e+17 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-10) None  Grid-point #20 at 2.615e+18 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+18
+#> Next point at 2.615e+19 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> search[ 2.615e+15 ] = 439.953(42.2422)
+#> search[ 2.615e+16 ] = 439.953(42.2422)
+#> search[ 2.615e+17 ] = 439.953(42.2422)
+#> search[ 2.615e+18 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(2.76553e-10) None  Grid-point #21 at 2.615e+19 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+19
+#> Next point at 2.615e+20 with value 0 and continue = 1
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> search[ 2.615e+15 ] = 439.953(42.2422)
+#> search[ 2.615e+16 ] = 439.953(42.2422)
+#> search[ 2.615e+17 ] = 439.953(42.2422)
+#> search[ 2.615e+18 ] = 439.953(42.2422)
+#> search[ 2.615e+19 ] = 439.953(42.2422)
+#> 
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #1 Rep #1 pred log like = 372.477
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #2 Rep #1 pred log like = 427.325
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #3 Rep #1 pred log like = 468.972
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #4 Rep #1 pred log like = 505.448
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #5 Rep #1 pred log like = 364.283
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #6 Rep #1 pred log like = 433.204
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #7 Rep #1 pred log like = 443.18
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #8 Rep #1 pred log like = 438.402
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #9 Rep #1 pred log like = 475.918
+#> Running at Laplace(8.74539e-11) None  Grid-point #22 at 2.615e+20 	Fold #10 Rep #1 pred log like = 470.318
+#> AvgPred = 439.953 with stdev = 42.2422
+#> Completed at 2.615e+20
+#> Next point at 3.27402e+12 with value 439.953 and continue = 0
+#> search[ 0.2615 ] = 439.952(42.2492)
+#> search[ 2.615 ] = 439.952(42.2447)
+#> search[ 26.15 ] = 439.953(42.243)
+#> search[ 261.5 ] = 439.953(42.2425)
+#> search[ 2615 ] = 439.953(42.2423)
+#> search[ 26150 ] = 439.953(42.2423)
+#> search[ 261500 ] = 439.953(42.2422)
+#> search[ 2.615e+06 ] = 439.953(42.2422)
+#> search[ 2.615e+07 ] = 439.953(42.2422)
+#> search[ 2.615e+08 ] = 439.953(42.2422)
+#> search[ 2.615e+09 ] = 439.953(42.2422)
+#> search[ 2.615e+10 ] = 439.953(42.2422)
+#> search[ 2.615e+11 ] = 439.953(42.2422)
+#> search[ 2.615e+12 ] = 439.953(42.2422)
+#> search[ 2.615e+13 ] = 439.953(42.2422)
+#> search[ 2.615e+14 ] = 439.953(42.2422)
+#> search[ 2.615e+15 ] = 439.953(42.2422)
+#> search[ 2.615e+16 ] = 439.953(42.2422)
+#> search[ 2.615e+17 ] = 439.953(42.2422)
+#> search[ 2.615e+18 ] = 439.953(42.2422)
+#> search[ 2.615e+19 ] = 439.953(42.2422)
+#> search[ 2.615e+20 ] = 439.953(42.2422)
+#> 
+#> 
+#> Maximum predicted log likelihood (439.953) estimated at:
+#> 	3.27402e+12 (variance)
+#> 	7.81582e-07 (lambda)
+#> 
+#> Fitting model at optimal hyperparameter
+#> Using prior: Laplace(7.81582e-07) None 
+
+#Find out what the optimal hyperparameter was:
+getHyperParameter(fit)
+#> [1] 3.274021e+12
+
+#Extract the current log-likelihood, and coefficients
+logLik(fit)
+#> 'log Lik.' -2097.62 (df=3)
+coef(fit)
+#> (Intercept)           1           2 
+#> -3.87566911  0.05844875  0.01875022 
+
+#We can only retrieve the confidence interval for unregularized coefficients:
+confint(fit, c(0))
+#> Using 1 thread(s)
+#>             covariate     2.5 %    97.5 % evaluations
+#> (Intercept)         0 -3.910302 -3.841399          22
+
+
+
- - - + + diff --git a/docs/reference/getNumberOfCovariates.html b/docs/reference/getNumberOfCovariates.html index f221361d..bf695d09 100644 --- a/docs/reference/getNumberOfCovariates.html +++ b/docs/reference/getNumberOfCovariates.html @@ -1,67 +1,12 @@ - - - - - - - -Get total number of covariates — getNumberOfCovariates • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get total number of covariates — getNumberOfCovariates • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get total number of covariates

getNumberOfCovariates returns the total number of covariates in a Cyclops data object

-
getNumberOfCovariates(object)
+
+
getNumberOfCovariates(object)
+
-

Arguments

- - - - - - -
object

A Cyclops data object

+
+

Arguments

+
object
+

A Cyclops data object

+
+
- - - + + diff --git a/docs/reference/getNumberOfRows.html b/docs/reference/getNumberOfRows.html index a219f338..df4d164e 100644 --- a/docs/reference/getNumberOfRows.html +++ b/docs/reference/getNumberOfRows.html @@ -1,67 +1,12 @@ - - - - - - - -Get total number of rows — getNumberOfRows • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get total number of rows — getNumberOfRows • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get total number of rows

getNumberOfRows returns the total number of outcome rows in a Cyclops data object

-
getNumberOfRows(object)
+
+
getNumberOfRows(object)
+
-

Arguments

- - - - - - -
object

A Cyclops data object

+
+

Arguments

+
object
+

A Cyclops data object

+
+
- - - + + diff --git a/docs/reference/getNumberOfStrata.html b/docs/reference/getNumberOfStrata.html index 09eedc36..c7c15798 100644 --- a/docs/reference/getNumberOfStrata.html +++ b/docs/reference/getNumberOfStrata.html @@ -1,67 +1,12 @@ - - - - - - - -Get number of strata — getNumberOfStrata • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get number of strata — getNumberOfStrata • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get number of strata

getNumberOfStrata return the number of unique strata in a Cyclops data object

-
getNumberOfStrata(object)
+
+
getNumberOfStrata(object)
+
-

Arguments

- - - - - - -
object

A Cyclops data object

+
+

Arguments

+
object
+

A Cyclops data object

+
+
- - - + + diff --git a/docs/reference/getNumberOfTypes.html b/docs/reference/getNumberOfTypes.html index e09c992e..086f373b 100644 --- a/docs/reference/getNumberOfTypes.html +++ b/docs/reference/getNumberOfTypes.html @@ -1,67 +1,12 @@ - - - - - - - -Get total number of outcome types — getNumberOfTypes • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get total number of outcome types — getNumberOfTypes • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Get total number of outcome types

getNumberOfTypes returns the total number of outcome types in a Cyclops data object

-
getNumberOfTypes(object)
+
+
getNumberOfTypes(object)
+
-

Arguments

- - - - - - -
object

A Cyclops data object

+
+

Arguments

+
object
+

A Cyclops data object

+
+
- - - + + diff --git a/docs/reference/getSEs.html b/docs/reference/getSEs.html index 357d85aa..8c241997 100644 --- a/docs/reference/getSEs.html +++ b/docs/reference/getSEs.html @@ -1,67 +1,12 @@ - - - - - - - -Extract standard errors — getSEs • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Extract standard errors — getSEs • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,58 +55,57 @@

Extract standard errors

getSEs extracts asymptotic standard errors for specific covariates from a Cyclops model fit object.

-
getSEs(object, covariates)
+
+
getSEs(object, covariates)
+
+ +
+

Arguments

+
object
+

A Cyclops model fit object

-

Arguments

- - - - - - - - - - -
object

A Cyclops model fit object

covariates

Integer or string vector: list of covariates for which asymptotic standard errors are wanted

-

Value

+
covariates
+

Integer or string vector: list of covariates for which asymptotic standard errors are wanted

-

Vector of standard error estimates

-

Details

+
+
+

Value

+ +

Vector of standard error estimates

+
+
+

Details

This function first computes the (partial) Fisher information matrix for just the requested covariates and then returns the square root of the diagonal elements of the inverse of the Fisher information matrix. These are the asymptotic standard errors when all possible covariates are included. When the requested covariates do not equate to all coefficients in the model, then interpretation is more challenging.

+
+
- - - + + diff --git a/docs/reference/getUnivariableCorrelation.html b/docs/reference/getUnivariableCorrelation.html index d3821613..7ea0bafb 100644 --- a/docs/reference/getUnivariableCorrelation.html +++ b/docs/reference/getUnivariableCorrelation.html @@ -1,67 +1,12 @@ - - - - - - - -Get univariable correlation — getUnivariableCorrelation • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get univariable correlation — getUnivariableCorrelation • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,54 +55,52 @@

Get univariable correlation

getUnivariableCorrelation reports covariates that have high correlation with the outcome

-
getUnivariableCorrelation(cyclopsData, covariates = NULL, threshold = 0)
- -

Arguments

- - - - - - - - - - - - - - -
cyclopsData

A Cyclops data object

covariates

Integer or string vector: list of covariates to report; default (NULL) implies all covariates

threshold

Correlation threshold for reporting

- -

Value

- -

A list of covariates whose absolute correlation with the outcome is greater than or equal to the threshold

+
+
getUnivariableCorrelation(cyclopsData, covariates = NULL, threshold = 0)
+
+ +
+

Arguments

+
cyclopsData
+

A Cyclops data object

+ + +
covariates
+

Integer or string vector: list of covariates to report; default (NULL) implies all covariates

+ + +
threshold
+

Correlation threshold for reporting

+ +
+
+

Value

+ + +

A list of covariates whose absolute correlation with the outcome is greater than or equal to the threshold

+
+
- - - + + diff --git a/docs/reference/getUnivariableSeparability.html b/docs/reference/getUnivariableSeparability.html index ae00bafe..ec0f8feb 100644 --- a/docs/reference/getUnivariableSeparability.html +++ b/docs/reference/getUnivariableSeparability.html @@ -1,67 +1,12 @@ - - - - - - - -Get univariable linear separability — getUnivariableSeparability • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Get univariable linear separability — getUnivariableSeparability • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,50 +55,48 @@

Get univariable linear separability

getUnivariableSeparability reports covariates that are univariably separable with the outcome

-
getUnivariableSeparability(cyclopsData, covariates = NULL)
+
+
getUnivariableSeparability(cyclopsData, covariates = NULL)
+
+ +
+

Arguments

+
cyclopsData
+

A Cyclops data object

-

Arguments

- - - - - - - - - - -
cyclopsData

A Cyclops data object

covariates

Integer or string vector: list of covariates to report; default (NULL) implies all covariates

-

Value

+
covariates
+

Integer or string vector: list of covariates to report; default (NULL) implies all covariates

-

A list of covariates that are univariably separable with the outcome

+
+
+

Value

+ + +

A list of covariates that are univariably separable with the outcome

+
+
- - - + + diff --git a/docs/reference/index.html b/docs/reference/index.html index b294ffe6..8edaea93 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -1,66 +1,12 @@ - - - - - - - -Function reference • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Function reference • Cyclops - + + - - - -
-
- -
- -
+
- - - - - - - - - - -
-

All functions

+ - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - -
+

All functions

+

Multitype()

Create a multitype outcome object

+

coef(<cyclopsFit>)

Extract model coefficients

+

confint(<cyclopsFit>)

Confidence intervals for Cyclops model parameters

+

convertToCyclopsData()

Convert data from two data frames or ffdf objects into a CyclopsData object

+
+

convertToTimeVaryingCoef()

+

Convert short sparse covariate table to long sparse covariate table for time-varying coefficients.

coverage()

Coverage

+

createAutoGridCrossValidationControl()

Create a Cyclops control object that supports multiple hyperparameters

+

createControl()

Create a Cyclops control object

+

createCyclopsData()

Create a Cyclops data object

+

createNonSeparablePrior()

Create a Cyclops prior object that returns the MLE of non-separable coefficients

+

createParameterizedPrior()

Create a Cyclops parameterized prior object

+

createPrior()

Create a Cyclops prior object

+
+

createWeightBasedSearchControl()

+

Create a Cyclops control object that supports in- / out-of-sample hyperparameter search using weights

cyclops

Cyclops: Cyclic coordinate descent for logistic, Poisson and survival analysis

+

fitCyclopsModel()

Fit a Cyclops model

+

fitCyclopsSimulation()

Fit simulated data

+

getCovariateIds()

Get covariate identifiers

+

getCovariateTypes()

Get covariate types

+

getCyclopsProfileLogLikelihood()

Profile likelihood for Cyclops model parameters

+

getFineGrayWeights()

Creates a Surv object that forces in competing risks and the IPCW needed for Fine-Gray estimation.

+

getFloatingPointSize()

Get floating point size

+

getHyperParameter()

Get hyperparameter

+

getNumberOfCovariates()

Get total number of covariates

+

getNumberOfRows()

Get total number of rows

+

getNumberOfStrata()

Get number of strata

+

getUnivariableCorrelation()

Get univariable correlation

+

getUnivariableSeparability()

Get univariable linear separability

+

isInitialized()

Check if a Cyclops data object is initialized

+

logLik(<cyclopsFit>)

Extract log-likelihood

+

meanLinearPredictor()

Calculates xbar*beta

+

mse()

Mean squared error

+

oxford

Oxford self-controlled case series data

+

predict(<cyclopsFit>)

Model predictions

+

print(<cyclopsData>)

Print a Cyclops data object

+

print(<cyclopsFit>)

Print a Cyclops model fit object

+

readCyclopsData()

Read Cyclops data from file

+

simulateCyclopsData()

Simulation Cyclops dataset

+
+

splitTime()

+

Split the analysis time into several intervals for time-varying coefficients.

summary(<cyclopsData>)

Cyclops data object summary

+

survfit(<cyclopsFit>)

Calculate baseline hazard function

+

vcov(<cyclopsFit>)

Calculate variance-covariance matrix for a fitted Cyclops model object

- +
+
-
- - + + diff --git a/docs/reference/isInitialized.html b/docs/reference/isInitialized.html index e6eed93a..38851be3 100644 --- a/docs/reference/isInitialized.html +++ b/docs/reference/isInitialized.html @@ -1,69 +1,14 @@ - - - - - - - -Check if a Cyclops data object is initialized — isInitialized • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Check if a Cyclops data object is initialized — isInitialized • Cyclops - - - - - - - - - - + + - - - -
-
- -
- -
+
@@ -127,43 +59,38 @@

Check if a Cyclops data object is initialized

serialized/deserialize their back-end memory across R sessions.

-
isInitialized(object)
+
+
isInitialized(object)
+
-

Arguments

- - - - - - -
object

Cyclops data object to test

+
+

Arguments

+
object
+

Cyclops data object to test

+
+
- - - + + diff --git a/docs/reference/logLik.cyclopsFit.html b/docs/reference/logLik.cyclopsFit.html index b47df32c..5f68c200 100644 --- a/docs/reference/logLik.cyclopsFit.html +++ b/docs/reference/logLik.cyclopsFit.html @@ -1,67 +1,12 @@ - - - - - - - -Extract log-likelihood — logLik.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Extract log-likelihood — logLik.cyclopsFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,133 +55,138 @@

Extract log-likelihood

logLik returns the current log-likelihood of the fit in a Cyclops model fit object

-
# S3 method for cyclopsFit
-logLik(object, ...)
- -

Arguments

- - - - - - - - - - -
object

A Cyclops model fit object

...

Additional arguments

- - -

Examples

-
#Generate some simulated data: -sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, - model = "poisson") -
#> Sparseness = 76.3 %
cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", - addIntercept = TRUE) -
#> Sorting covariates by covariateId and rowId
-#Define the prior and control objects to use cross-validation for finding the -#optimal hyperparameter: -prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE) -control <- createControl(cvType = "auto", noiseLevel = "quiet") - -#Fit the model -fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control) -
#> Using cross-validation selector type byRow -#> Performing 10-fold cross-validation [seed = 1623936646] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100 -#> Using 1 thread(s) -#> Starting var = 0.237 (default) -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #1 Rep #1 pred log like = 81.7154 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #2 Rep #1 pred log like = 84.3058 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #3 Rep #1 pred log like = 44.7229 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #4 Rep #1 pred log like = 67.5691 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #5 Rep #1 pred log like = 102.612 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #6 Rep #1 pred log like = -1.50097 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #7 Rep #1 pred log like = 92.0468 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #8 Rep #1 pred log like = 37.2992 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #9 Rep #1 pred log like = 83.6135 -#> Running at Laplace(2.90496) None Grid-point #1 at 0.237 Fold #10 Rep #1 pred log like = 30.8871 -#> AvgPred = 62.327 with stdev = 31.3759 -#> Completed at 0.237 -#> Next point at 2.37 with value 0 and continue = 1 -#> search[ 0.237 ] = 62.327(31.3759) -#> -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #1 Rep #1 pred log like = 81.7226 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #2 Rep #1 pred log like = 84.2611 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #3 Rep #1 pred log like = 44.7842 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #4 Rep #1 pred log like = 67.5706 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #5 Rep #1 pred log like = 102.538 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #6 Rep #1 pred log like = -1.49342 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #7 Rep #1 pred log like = 91.9862 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #8 Rep #1 pred log like = 37.3588 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #9 Rep #1 pred log like = 83.6881 -#> Running at Laplace(0.91863) None Grid-point #2 at 2.37 Fold #10 Rep #1 pred log like = 30.8629 -#> AvgPred = 62.3279 with stdev = 31.3558 -#> Completed at 2.37 -#> Next point at 23.7 with value 0 and continue = 1 -#> search[ 0.237 ] = 62.327(31.3759) -#> search[ 2.37 ] = 62.3279(31.3558) -#> -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #1 Rep #1 pred log like = 81.7245 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #2 Rep #1 pred log like = 84.2464 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #3 Rep #1 pred log like = 44.8033 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #4 Rep #1 pred log like = 67.5705 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #5 Rep #1 pred log like = 102.514 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #6 Rep #1 pred log like = -1.49139 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #7 Rep #1 pred log like = 91.9666 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #8 Rep #1 pred log like = 37.3773 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #9 Rep #1 pred log like = 83.7113 -#> Running at Laplace(0.290496) None Grid-point #3 at 23.7 Fold #10 Rep #1 pred log like = 30.8547 -#> AvgPred = 62.3278 with stdev = 31.3495 -#> Completed at 23.7 -#> Next point at 5.15795 with value 62.328 and continue = 0 -#> search[ 0.237 ] = 62.327(31.3759) -#> search[ 2.37 ] = 62.3279(31.3558) -#> search[ 23.7 ] = 62.3278(31.3495) -#> -#> -#> Maximum predicted log likelihood (62.328) estimated at: -#> 5.15795 (variance) -#> 0.622697 (lambda) -#> -#> Fitting model at optimal hyperparameter -#> Using prior: Laplace(0.622697) None
-#Find out what the optimal hyperparameter was: -getHyperParameter(fit) -
#> [1] 5.157948
-#Extract the current log-likelihood, and coefficients -logLik(fit) -
#> 'log Lik.' -1691.249 (df=3)
coef(fit) -
#> (Intercept) 1 2 -#> -4.39513986 -0.04641266 -0.55810190
-#We can only retrieve the confidence interval for unregularized coefficients: -confint(fit, c(0)) -
#> Using 1 thread(s)
#> covariate 2.5 % 97.5 % evaluations -#> [1,] 0 -4.439663 -4.351258 20
+
+
# S3 method for cyclopsFit
+logLik(object, ...)
+
+ +
+

Arguments

+
object
+

A Cyclops model fit object

+ + +
...
+

Additional arguments

+ +
+ +
+

Examples

+
#Generate some simulated data:
+sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, 
+                           model = "poisson")
+#> Sparseness = 77.4 %
+cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", 
+                                    addIntercept = TRUE)
+#> Sorting covariates by covariateId and rowId
+
+#Define the prior and control objects to use cross-validation for finding the 
+#optimal hyperparameter:
+prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE)
+control <- createControl(cvType = "auto", noiseLevel = "quiet")
+
+#Fit the model
+fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control)  
+#> Using cross-validation selector type byRow
+#> Performing 10-fold cross-validation [seed = 1698757939] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100
+#> Using 1 thread(s)
+#> Starting var = 0.226 (default)
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #1 Rep #1 pred log like = 424.312
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #2 Rep #1 pred log like = 286.112
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #3 Rep #1 pred log like = 542.244
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #4 Rep #1 pred log like = 462.595
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #5 Rep #1 pred log like = 523.632
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #6 Rep #1 pred log like = 390.675
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #7 Rep #1 pred log like = 360.237
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #8 Rep #1 pred log like = 399.312
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #9 Rep #1 pred log like = 395.077
+#> Running at Laplace(2.97482) None  Grid-point #1 at 0.226 	Fold #10 Rep #1 pred log like = 331.197
+#> AvgPred = 411.539 with stdev = 76.2186
+#> Completed at 0.226
+#> Next point at 2.26 with value 0 and continue = 1
+#> search[ 0.226 ] = 411.539(76.2186)
+#> 
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #1 Rep #1 pred log like = 424.271
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #2 Rep #1 pred log like = 286.187
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #3 Rep #1 pred log like = 542.304
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #4 Rep #1 pred log like = 462.57
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #5 Rep #1 pred log like = 523.608
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #6 Rep #1 pred log like = 390.669
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #7 Rep #1 pred log like = 360.212
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #8 Rep #1 pred log like = 399.333
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #9 Rep #1 pred log like = 395.126
+#> Running at Laplace(0.940721) None  Grid-point #2 at 2.26 	Fold #10 Rep #1 pred log like = 331.12
+#> AvgPred = 411.54 with stdev = 76.2193
+#> Completed at 2.26
+#> Next point at 22.6 with value 0 and continue = 1
+#> search[ 0.226 ] = 411.539(76.2186)
+#> search[ 2.26 ] = 411.54(76.2193)
+#> 
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #1 Rep #1 pred log like = 424.258
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #2 Rep #1 pred log like = 286.211
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #3 Rep #1 pred log like = 542.322
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #4 Rep #1 pred log like = 462.562
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #5 Rep #1 pred log like = 523.601
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #6 Rep #1 pred log like = 390.667
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #7 Rep #1 pred log like = 360.204
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #8 Rep #1 pred log like = 399.34
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #9 Rep #1 pred log like = 395.142
+#> Running at Laplace(0.297482) None  Grid-point #3 at 22.6 	Fold #10 Rep #1 pred log like = 331.095
+#> AvgPred = 411.54 with stdev = 76.2195
+#> Completed at 22.6
+#> Next point at 7.08693 with value 411.54 and continue = 0
+#> search[ 0.226 ] = 411.539(76.2186)
+#> search[ 2.26 ] = 411.54(76.2193)
+#> search[ 22.6 ] = 411.54(76.2195)
+#> 
+#> 
+#> Maximum predicted log likelihood (411.54) estimated at:
+#> 	7.08693 (variance)
+#> 	0.531234 (lambda)
+#> 
+#> Fitting model at optimal hyperparameter
+#> Using prior: Laplace(0.531234) None 
+
+#Find out what the optimal hyperparameter was:
+getHyperParameter(fit)
+#> [1] 7.086931
+
+#Extract the current log-likelihood, and coefficients
+logLik(fit)
+#> 'log Lik.' -2045.115 (df=3)
+coef(fit)
+#> (Intercept)           1           2 
+#> -3.89896635 -0.03932575  0.03150517 
+
+#We can only retrieve the confidence interval for unregularized coefficients:
+confint(fit, c(0))
+#> Using 1 thread(s)
+#>             covariate     2.5 %    97.5 % evaluations
+#> (Intercept)         0 -3.932993 -3.865291          22
+
+
+
- - - + + diff --git a/docs/reference/meanLinearPredictor.html b/docs/reference/meanLinearPredictor.html index 075937fd..322c12d4 100644 --- a/docs/reference/meanLinearPredictor.html +++ b/docs/reference/meanLinearPredictor.html @@ -1,67 +1,12 @@ - - - - - - - -Calculates xbar*beta — meanLinearPredictor • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Calculates xbar*beta — meanLinearPredictor • Cyclops - + + - - - -
-
- -
- -
+
@@ -123,43 +55,38 @@

Calculates xbar*beta

meanLinearPredictor computes xbar*beta for model fit

-
meanLinearPredictor(cyclopsFit)
+
+
meanLinearPredictor(cyclopsFit)
+
-

Arguments

- - - - - - -
cyclopsFit

A Cyclops model fit object

+
+

Arguments

+
cyclopsFit
+

A Cyclops model fit object

+
+
- - - + + diff --git a/docs/reference/mse.html b/docs/reference/mse.html index ed869eac..d61256a4 100644 --- a/docs/reference/mse.html +++ b/docs/reference/mse.html @@ -1,67 +1,12 @@ - - - - - - - -Mean squared error — mse • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Mean squared error — mse • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,50 +55,48 @@

Mean squared error

mse computes the mean squared error between two numeric vectors

-
mse(goldStandard, estimates)
+
+
mse(goldStandard, estimates)
+
+ +
+

Arguments

+
goldStandard
+

Numeric vector

-

Arguments

- - - - - - - - - - -
goldStandard

Numeric vector

estimates

Numeric vector

-

Value

+
estimates
+

Numeric vector

-

MSE(goldStandard, estimates)

+
+
+

Value

+ + +

MSE(goldStandard, estimates)

+
+
- - - + + diff --git a/docs/reference/oxford.html b/docs/reference/oxford.html index 55d09700..216a123e 100644 --- a/docs/reference/oxford.html +++ b/docs/reference/oxford.html @@ -1,68 +1,13 @@ - - - - - - - -Oxford self-controlled case series data — oxford • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Oxford self-controlled case series data — oxford • Cyclops - - - - + + -
-
- -
- -
+
@@ -125,48 +57,55 @@

Oxford self-controlled case series data

Farrington and Whitaker. There are 10 patients comprising 38 unique exposure intervals.

-
data(oxford)
+
+
data(oxford)
+
+ +
+

Format

+

A data frame with 38 rows and 6 variables:

indiv
+

patient identifier

+
event
+

number of events in interval

-

Format

+
interval
+

interval length in days

-

A data frame with 38 rows and 6 variables:

-
indiv

patient identifier

-
event

number of events in interval

-
interval

interval length in days

-
agegr

age group

-
exgr

exposure group

-
loginterval

log interval length

- ... +
agegr
+

age group

-
+
exgr
+

exposure group

+
loginterval
+

log interval length

+ +... + +
+
- - - + + diff --git a/docs/reference/plotCyclopsSimulationFit.html b/docs/reference/plotCyclopsSimulationFit.html index 845d5501..4d7547c9 100644 --- a/docs/reference/plotCyclopsSimulationFit.html +++ b/docs/reference/plotCyclopsSimulationFit.html @@ -1,68 +1,13 @@ - - - - - - - -Plot Cyclops simulation model fit — plotCyclopsSimulationFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Plot Cyclops simulation model fit — plotCyclopsSimulationFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -125,51 +57,46 @@

Plot Cyclops simulation model fit

Cyclops model fit.

-
plotCyclopsSimulationFit(fit, goldStandard, label)
- -

Arguments

- - - - - - - - - - - - - - -
fit

A Cyclops simulation fit generated by fitCyclopsSimulation

goldStandard

Numeric vector. True relative risks.

label

String. Name of estimate type.

+
+
plotCyclopsSimulationFit(fit, goldStandard, label)
+
+ +
+

Arguments

+
fit
+

A Cyclops simulation fit generated by fitCyclopsSimulation

+ + +
goldStandard
+

Numeric vector. True relative risks.

+
label
+

String. Name of estimate type.

+ +
+
+
- - - + + diff --git a/docs/reference/predict.cyclopsFit.html b/docs/reference/predict.cyclopsFit.html index ae7ad7d7..b10cf40b 100644 --- a/docs/reference/predict.cyclopsFit.html +++ b/docs/reference/predict.cyclopsFit.html @@ -1,67 +1,12 @@ - - - - - - - -Model predictions — predict.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Model predictions — predict.cyclopsFit • Cyclops + + - - - - -
-
- -
- -
+
@@ -123,56 +55,51 @@

Model predictions

predict.cyclopsFit computes model response-scale predictive values for all data rows

-
# S3 method for cyclopsFit
-predict(object, newOutcomes, newCovariates, ...)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
object

A Cyclops model fit object

newOutcomes

An optional data frame or Andromeda table object, similar to the object used in convertToCyclopsData.

newCovariates

An optional data frame or Andromeda table object, similar to the object used in convertToCyclopsData.

...

Additional arguments

+
+
# S3 method for cyclopsFit
+predict(object, newOutcomes, newCovariates, ...)
+
+
+

Arguments

+
object
+

A Cyclops model fit object

+ + +
newOutcomes
+

An optional data frame or Andromeda table object, similar to the object used in convertToCyclopsData.

+ + +
newCovariates
+

An optional data frame or Andromeda table object, similar to the object used in convertToCyclopsData.

+ + +
...
+

Additional arguments

+ +
+
- - - + + diff --git a/docs/reference/print.cyclopsData.html b/docs/reference/print.cyclopsData.html index d768bd9d..08f4ea17 100644 --- a/docs/reference/print.cyclopsData.html +++ b/docs/reference/print.cyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -Print a Cyclops data object — print.cyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Print a Cyclops data object — print.cyclopsData • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,52 +55,47 @@

Print a Cyclops data object

print.cyclopsData displays information about a Cyclops data model object.

-
# S3 method for cyclopsData
-print(x, show.call = TRUE, ...)
- -

Arguments

- - - - - - - - - - - - - - -
x

A Cyclops data model object

show.call

Logical: display last call to construct the Cyclops data model object

...

Additional arguments

+
+
# S3 method for cyclopsData
+print(x, show.call = TRUE, ...)
+
+ +
+

Arguments

+
x
+

A Cyclops data model object

+ + +
show.call
+

Logical: display last call to construct the Cyclops data model object

+
...
+

Additional arguments

+ +
+
+
- - - + + diff --git a/docs/reference/print.cyclopsFit.html b/docs/reference/print.cyclopsFit.html index 7b678661..37eed6bf 100644 --- a/docs/reference/print.cyclopsFit.html +++ b/docs/reference/print.cyclopsFit.html @@ -1,67 +1,12 @@ - - - - - - - -Print a Cyclops model fit object — print.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Print a Cyclops model fit object — print.cyclopsFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,52 +55,47 @@

Print a Cyclops model fit object

print.cyclopsFit displays information about a Cyclops model fit object

-
# S3 method for cyclopsFit
-print(x, show.call = TRUE, ...)
- -

Arguments

- - - - - - - - - - - - - - -
x

A Cyclops model fit object

show.call

Logical: display last call to update the Cyclops model fit object

...

Additional arguments

+
+
# S3 method for cyclopsFit
+print(x, show.call = TRUE, ...)
+
+ +
+

Arguments

+
x
+

A Cyclops model fit object

+ + +
show.call
+

Logical: display last call to update the Cyclops model fit object

+
...
+

Additional arguments

+ +
+
+
- - - + + diff --git a/docs/reference/printMatrixMarket.html b/docs/reference/printMatrixMarket.html index 95f04b5e..eb499916 100644 --- a/docs/reference/printMatrixMarket.html +++ b/docs/reference/printMatrixMarket.html @@ -1,67 +1,12 @@ - - - - - - - -Print Cyclops data matrix to file — printMatrixMarket • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Print Cyclops data matrix to file — printMatrixMarket • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,47 +55,42 @@

Print Cyclops data matrix to file

printMatrixMarket prints the data matrix to a file

-
printMatrixMarket(object, file)
+
+
printMatrixMarket(object, file)
+
+ +
+

Arguments

+
object
+

A Cyclops data object

+ -

Arguments

- - - - - - - - - - -
object

A Cyclops data object

file

Filename

+
file
+

Filename

+
+
- - - + + diff --git a/docs/reference/readCyclopsData.html b/docs/reference/readCyclopsData.html index 0d6995b4..c2bd6779 100644 --- a/docs/reference/readCyclopsData.html +++ b/docs/reference/readCyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -Read Cyclops data from file — readCyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Read Cyclops data from file — readCyclopsData • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,54 +55,37 @@

Read Cyclops data from file

readCyclopsData reads a Cyclops-formatted text file.

-
readCyclopsData(fileName, modelType)
+
+
readCyclopsData(fileName, modelType)
+
-

Arguments

- - - - - - - - - - -
fileName

Name of text file to be read. If fileName does not contain an absolute path,

modelType

character string: Valid types are listed below.

+
+

Arguments

+
fileName
+

Name of text file to be read. If fileName does not contain an absolute path,

-

Value

-

A list that contains a Cyclops model data object pointer and an operation duration

-

Details

+
modelType
+

character string: Valid types are listed below.

+ +
+
+

Value

+ +

A list that contains a Cyclops model data object pointer and an operation duration

+
+
+

Details

This function reads a Cyclops-formatted text file and returns a Cyclops data object. The first line of the file may start with '#', indicating that it contains header options. Valid header options are:

-

- - - - - - - - - - - - -
row_label(assume file contains a numeric column of unique row identifiers)
stratum_label(assume file contains a numeric column of stratum identifiers)
weight(assume file contains a column of row-specific model weights, currently unused)
offset(assume file contains a dense column of linear predictor offsets)
bbr_outcome(assume logistic outcomes are encoded -1/+1 following BBR)
log_offset(assume file contains a dense column of values x_i for which log(x_i) is the offset)
add_intercept(automatically include an intercept column of all 1s for each entry)
indicator_only(assume all covariates 0/1-valued and only covariate name is given)
sparse(force all BBR formatted covariates to be represented as sparse, instead of
sparse-indicator, columns .. really only for debugging)
dense(force all BBR formatted covariates to be represented as dense columns.. really
only for debugging)
- - -

Successive lines of the file are white-space delimited and follow the format:

-
	[Row ID] {Stratum ID} [Weight] <Outcome> {Censored} {Offset} <BBR covariates>
- -
    -
  • [optional]

  • +
    row_label(assume file contains a numeric column of unique row identifiers)
    stratum_label(assume file contains a numeric column of stratum identifiers)
    weight(assume file contains a column of row-specific model weights, currently unused)
    offset(assume file contains a dense column of linear predictor offsets)
    bbr_outcome(assume logistic outcomes are encoded -1/+1 following BBR)
    log_offset(assume file contains a dense column of values x_i for which log(x_i) is the offset)
    add_intercept(automatically include an intercept column of all 1s for each entry)
    indicator_only(assume all covariates 0/1-valued and only covariate name is given)
    sparse(force all BBR formatted covariates to be represented as sparse, instead of
    sparse-indicator, columns .. really only for debugging)
    dense(force all BBR formatted covariates to be represented as dense columns.. really
    only for debugging)

    Successive lines of the file are white-space delimited and follow the format:

    +
    	[Row ID] {Stratum ID} [Weight] <Outcome> {Censored} {Offset} <BBR covariates>
    + +
    • [optional]

    • <required>

    • {required or optional depending on model}

    • -
    - -

    Bayesian binary regression (BBR) covariates are white-space delimited and generally in a sparse +

Bayesian binary regression (BBR) covariates are white-space delimited and generally in a sparse <name>:<value> format, where name must (currently) be numeric and value is non-zero. If option indicator_only is specified, then format is simply <name>. Row ID and Stratum ID must be numeric, and rows must be sorted such that equal Stratum ID @@ -178,53 +93,41 @@

Details Stratum ID is required for clr and sccs models. Censored is required for a cox model. Offset is (currently) required for a sccs model.

-

Models

- +
+
+

Models

-

Currently supported model types are:

- - - - - - - - -
"ls"Least squares
"pr"Poisson regression
"lr"Logistic regression
"clr"Conditional logistic regression
"cpr"Conditional Poisson regression
"sccs"Self-controlled case series
"cox"Cox proportional hazards regression
"fgr"Fine-Gray proportional subdistribution hazards regression
+

Currently supported model types are:

"ls"Least squares
"pr"Poisson regression
"lr"Logistic regression
"clr"Conditional logistic regression
"cpr"Conditional Poisson regression
"sccs"Self-controlled case series
"cox"Cox proportional hazards regression
"fgr"Fine-Gray proportional subdistribution hazards regression
- - -

Examples

-
if (FALSE) { -dataPtr = readCyclopsData(system.file("extdata/infert_ccd.txt", package="Cyclops"), "clr") -} -
+
+

Examples

+
if (FALSE) {
+dataPtr = readCyclopsData(system.file("extdata/infert_ccd.txt", package="Cyclops"), "clr")
+}
+
+
+
- - - + + diff --git a/docs/reference/reduce.html b/docs/reference/reduce.html index 8e8d571c..095deb92 100644 --- a/docs/reference/reduce.html +++ b/docs/reference/reduce.html @@ -1,67 +1,12 @@ - - - - - - - -Apply simple data reductions — reduce • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Apply simple data reductions — reduce • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,58 +55,56 @@

Apply simple data reductions

reduce reports the count of non-zero elements, sum and sum-of-squares for specified covariates in a Cyclops data object.

-
reduce(object, covariates, groupBy, power = 1)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
object

A Cyclops data object

covariates

Integer or string vector: list of covariates to report

groupBy

Integer or string (optional): generates a segmented reduction stratified by this covariate. Setting groupBy = "stratum" segments reduction for strataID

power

Integer: 0 = non-zero count, 1 = sum, 2 = sum-of-squares

- -

Value

- -

Specified reduction as number or data.frame if segmented.

+
+
reduce(object, covariates, groupBy, power = 1)
+
+ +
+

Arguments

+
object
+

A Cyclops data object

+ + +
covariates
+

Integer or string vector: list of covariates to report

+ + +
groupBy
+

Integer or string (optional): generates a segmented reduction stratified by this covariate. Setting groupBy = "stratum" segments reduction for strataID

+ + +
power
+

Integer: 0 = non-zero count, 1 = sum, 2 = sum-of-squares

+ +
+
+

Value

+ + +

Specified reduction as number or data.frame if segmented.

+
+
- - - + + diff --git a/docs/reference/simulateCyclopsData.html b/docs/reference/simulateCyclopsData.html index 73d5b3f1..222a5a05 100644 --- a/docs/reference/simulateCyclopsData.html +++ b/docs/reference/simulateCyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -Simulation Cyclops dataset — simulateCyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Simulation Cyclops dataset — simulateCyclopsData • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,220 +55,253 @@

Simulation Cyclops dataset

simulateCyclopsData generates a simulated large, sparse data set for use by fitCyclopsSimulation.

-
simulateCyclopsData(
-  nstrata = 200,
-  nrows = 10000,
-  ncovars = 20,
-  effectSizeSd = 1,
-  zeroEffectSizeProp = 0.9,
-  eCovarsPerRow = ncovars/100,
-  model = "survival"
-)
+
+
simulateCyclopsData(
+  nstrata = 200,
+  nrows = 10000,
+  ncovars = 20,
+  effectSizeSd = 1,
+  zeroEffectSizeProp = 0.9,
+  eCovarsPerRow = ncovars/100,
+  model = "survival"
+)
+
+ +
+

Arguments

+
nstrata
+

Numeric: Number of strata

+ + +
nrows
+

Numeric: Number of observation rows

+ -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nstrata

Numeric: Number of strata

nrows

Numeric: Number of observation rows

ncovars

Numeric: Number of covariates

effectSizeSd

Numeric: Standard derivation of the non-zero simulated regression coefficients

zeroEffectSizeProp

Numeric: Expected proportion of zero effect size

eCovarsPerRow

Number: Effective number of non-zero covariates per data row

model

String: Simulation model. Choices are: logistic, poisson or survival

+
ncovars
+

Numeric: Number of covariates

-

Value

-

A simulated data set

+
effectSizeSd
+

Numeric: Standard derivation of the non-zero simulated regression coefficients

-

Examples

-
#Generate some simulated data: -sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, - model = "poisson") -
#> Sparseness = 77.4 %
cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", - addIntercept = TRUE) -
#> Sorting covariates by covariateId and rowId
-#Define the prior and control objects to use cross-validation for finding the -#optimal hyperparameter: -prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE) -control <- createControl(cvType = "auto", noiseLevel = "quiet") -#Fit the model -fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control) -
#> Using cross-validation selector type byRow -#> Performing 10-fold cross-validation [seed = 1623936647] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100 -#> Using 1 thread(s) -#> Starting var = 0.226 (default) -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #1 Rep #1 pred log like = 657.252 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #2 Rep #1 pred log like = 695.827 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #3 Rep #1 pred log like = 565.49 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #4 Rep #1 pred log like = 658.746 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #5 Rep #1 pred log like = 796.882 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #6 Rep #1 pred log like = 585.307 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #7 Rep #1 pred log like = 823.083 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #8 Rep #1 pred log like = 702.257 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #9 Rep #1 pred log like = 606.283 -#> Running at Laplace(2.97482) None Grid-point #1 at 0.226 Fold #10 Rep #1 pred log like = 578.22 -#> AvgPred = 666.935 with stdev = 84.8616 -#> Completed at 0.226 -#> Next point at 2.26 with value 0 and continue = 1 -#> search[ 0.226 ] = 666.935(84.8616) -#> -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #1 Rep #1 pred log like = 657.25 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #2 Rep #1 pred log like = 695.793 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #3 Rep #1 pred log like = 565.477 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #4 Rep #1 pred log like = 658.699 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #5 Rep #1 pred log like = 796.848 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #6 Rep #1 pred log like = 585.3 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #7 Rep #1 pred log like = 823.096 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #8 Rep #1 pred log like = 702.252 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #9 Rep #1 pred log like = 606.293 -#> Running at Laplace(0.940721) None Grid-point #2 at 2.26 Fold #10 Rep #1 pred log like = 578.204 -#> AvgPred = 666.921 with stdev = 84.8612 -#> Completed at 2.26 -#> Next point at 0.0226 with value 0 and continue = 1 -#> search[ 0.226 ] = 666.935(84.8616) -#> search[ 2.26 ] = 666.921(84.8612) -#> -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #1 Rep #1 pred log like = 657.255 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #2 Rep #1 pred log like = 695.928 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #3 Rep #1 pred log like = 565.524 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #4 Rep #1 pred log like = 658.892 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #5 Rep #1 pred log like = 796.982 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #6 Rep #1 pred log like = 585.323 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #7 Rep #1 pred log like = 823.038 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #8 Rep #1 pred log like = 702.265 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #9 Rep #1 pred log like = 606.248 -#> Running at Laplace(9.40721) None Grid-point #3 at 0.0226 Fold #10 Rep #1 pred log like = 578.158 -#> AvgPred = 666.961 with stdev = 84.8743 -#> Completed at 0.0226 -#> Next point at 0.00226 with value 0 and continue = 1 -#> search[ 0.0226 ] = 666.961(84.8743) -#> search[ 0.226 ] = 666.935(84.8616) -#> search[ 2.26 ] = 666.921(84.8612) -#> -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #1 Rep #1 pred log like = 657.243 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #2 Rep #1 pred log like = 696.195 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #3 Rep #1 pred log like = 565.587 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #4 Rep #1 pred log like = 659.291 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #5 Rep #1 pred log like = 797.232 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #6 Rep #1 pred log like = 585.335 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #7 Rep #1 pred log like = 822.886 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #8 Rep #1 pred log like = 702.347 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #9 Rep #1 pred log like = 606.113 -#> Running at Laplace(29.7482) None Grid-point #4 at 0.00226 Fold #10 Rep #1 pred log like = 578.005 -#> AvgPred = 667.023 with stdev = 84.9109 -#> Completed at 0.00226 -#> Next point at 0.000226 with value 0 and continue = 1 -#> search[ 0.00226 ] = 667.023(84.9109) -#> search[ 0.0226 ] = 666.961(84.8743) -#> search[ 0.226 ] = 666.935(84.8616) -#> search[ 2.26 ] = 666.921(84.8612) -#> -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #1 Rep #1 pred log like = 657.235 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #2 Rep #1 pred log like = 696.232 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #3 Rep #1 pred log like = 565.599 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #4 Rep #1 pred log like = 659.49 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #5 Rep #1 pred log like = 797.258 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #6 Rep #1 pred log like = 585.335 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #7 Rep #1 pred log like = 822.886 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #8 Rep #1 pred log like = 702.377 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #9 Rep #1 pred log like = 606.113 -#> Running at Laplace(94.0721) None Grid-point #5 at 0.000226 Fold #10 Rep #1 pred log like = 578.005 -#> AvgPred = 667.053 with stdev = 84.9141 -#> Completed at 0.000226 -#> Next point at 2.26e-05 with value 0 and continue = 1 -#> search[ 0.000226 ] = 667.053(84.9141) -#> search[ 0.00226 ] = 667.023(84.9109) -#> search[ 0.0226 ] = 666.961(84.8743) -#> search[ 0.226 ] = 666.935(84.8616) -#> search[ 2.26 ] = 666.921(84.8612) -#> -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #1 Rep #1 pred log like = 657.235 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #2 Rep #1 pred log like = 696.232 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #3 Rep #1 pred log like = 565.599 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #4 Rep #1 pred log like = 659.49 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #5 Rep #1 pred log like = 797.258 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #6 Rep #1 pred log like = 585.335 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #7 Rep #1 pred log like = 822.886 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #8 Rep #1 pred log like = 702.377 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #9 Rep #1 pred log like = 606.113 -#> Running at Laplace(297.482) None Grid-point #6 at 2.26e-05 Fold #10 Rep #1 pred log like = 578.005 -#> AvgPred = 667.053 with stdev = 84.9141 -#> Completed at 2.26e-05 -#> Next point at 1.40708e-18 with value 667.235 and continue = 0 -#> search[ 2.26e-05 ] = 667.053(84.9141) -#> search[ 0.000226 ] = 667.053(84.9141) -#> search[ 0.00226 ] = 667.023(84.9109) -#> search[ 0.0226 ] = 666.961(84.8743) -#> search[ 0.226 ] = 666.935(84.8616) -#> search[ 2.26 ] = 666.921(84.8612) -#> -#> -#> Maximum predicted log likelihood (667.235) estimated at: -#> 1.40708e-18 (variance) -#> 1.19222e+09 (lambda) -#> -#> Fitting model at optimal hyperparameter -#> Using prior: Laplace(1.19222e+09) None
-#Find out what the optimal hyperparameter was: -getHyperParameter(fit) -
#> [1] 1.407076e-18
-#Extract the current log-likelihood, and coefficients -logLik(fit) -
#> 'log Lik.' -2176.569 (df=3)
coef(fit) -
#> (Intercept) 1 2 -#> -3.668132 0.000000 0.000000
-#We can only retrieve the confidence interval for unregularized coefficients: -confint(fit, c(0)) -
#> Using 1 thread(s)
#> covariate 2.5 % 97.5 % evaluations -#> [1,] 0 -3.69286 -3.643592 24
+
zeroEffectSizeProp
+

Numeric: Expected proportion of zero effect size

+ + +
eCovarsPerRow
+

Number: Effective number of non-zero covariates per data row

+ + +
model
+

String: Simulation model. Choices are: logistic, poisson or survival

+ +
+
+

Value

+ + +

A simulated data set

+
+ +
+

Examples

+
#Generate some simulated data:
+sim <- simulateCyclopsData(nstrata = 1, nrows = 1000, ncovars = 2, eCovarsPerRow = 0.5, 
+                           model = "poisson")
+#> Sparseness = 76.25 %
+cyclopsData <- convertToCyclopsData(sim$outcomes, sim$covariates, modelType = "pr", 
+                                    addIntercept = TRUE)
+#> Sorting covariates by covariateId and rowId
+
+#Define the prior and control objects to use cross-validation for finding the 
+#optimal hyperparameter:
+prior <- createPrior("laplace", exclude = 0, useCrossValidation = TRUE)
+control <- createControl(cvType = "auto", noiseLevel = "quiet")
+
+#Fit the model
+fit <- fitCyclopsModel(cyclopsData,prior = prior, control = control)  
+#> Using cross-validation selector type byRow
+#> Performing 10-fold cross-validation [seed = 1698757941] with data partitions of sizes 100 100 100 100 100 100 100 100 100 100
+#> Using 1 thread(s)
+#> Starting var = 0.2375 (default)
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #1 Rep #1 pred log like = 102.616
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #2 Rep #1 pred log like = 194.806
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #3 Rep #1 pred log like = 198.183
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #4 Rep #1 pred log like = 145.178
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #5 Rep #1 pred log like = 75.747
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #6 Rep #1 pred log like = 78.3006
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #7 Rep #1 pred log like = 123.887
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #8 Rep #1 pred log like = 192.631
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #9 Rep #1 pred log like = 153.328
+#> Running at Laplace(2.90191) None  Grid-point #1 at 0.2375 	Fold #10 Rep #1 pred log like = 101.303
+#> AvgPred = 136.598 with stdev = 45.0972
+#> Completed at 0.2375
+#> Next point at 2.375 with value 0 and continue = 1
+#> search[ 0.2375 ] = 136.598(45.0972)
+#> 
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #1 Rep #1 pred log like = 102.586
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #2 Rep #1 pred log like = 194.788
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #3 Rep #1 pred log like = 198.074
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #4 Rep #1 pred log like = 145.144
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #5 Rep #1 pred log like = 75.6951
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #6 Rep #1 pred log like = 78.2926
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #7 Rep #1 pred log like = 123.843
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #8 Rep #1 pred log like = 192.573
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #9 Rep #1 pred log like = 153.292
+#> Running at Laplace(0.917663) None  Grid-point #2 at 2.375 	Fold #10 Rep #1 pred log like = 101.237
+#> AvgPred = 136.553 with stdev = 45.0876
+#> Completed at 2.375
+#> Next point at 0.02375 with value 0 and continue = 1
+#> search[ 0.2375 ] = 136.598(45.0972)
+#> search[ 2.375 ] = 136.553(45.0876)
+#> 
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #1 Rep #1 pred log like = 102.69
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #2 Rep #1 pred log like = 194.857
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #3 Rep #1 pred log like = 198.387
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #4 Rep #1 pred log like = 145.273
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #5 Rep #1 pred log like = 75.8784
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #6 Rep #1 pred log like = 78.3257
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #7 Rep #1 pred log like = 124.02
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #8 Rep #1 pred log like = 192.801
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #9 Rep #1 pred log like = 153.42
+#> Running at Laplace(9.17663) None  Grid-point #3 at 0.02375 	Fold #10 Rep #1 pred log like = 101.43
+#> AvgPred = 136.708 with stdev = 45.1178
+#> Completed at 0.02375
+#> Next point at 0.002375 with value 0 and continue = 1
+#> search[ 0.02375 ] = 136.708(45.1178)
+#> search[ 0.2375 ] = 136.598(45.0972)
+#> search[ 2.375 ] = 136.553(45.0876)
+#> 
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #1 Rep #1 pred log like = 102.69
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #2 Rep #1 pred log like = 194.874
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #3 Rep #1 pred log like = 198.387
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #4 Rep #1 pred log like = 145.273
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #5 Rep #1 pred log like = 75.988
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #6 Rep #1 pred log like = 78.3279
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #7 Rep #1 pred log like = 124.209
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #8 Rep #1 pred log like = 192.831
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #9 Rep #1 pred log like = 153.42
+#> Running at Laplace(29.0191) None  Grid-point #4 at 0.002375 	Fold #10 Rep #1 pred log like = 101.43
+#> AvgPred = 136.743 with stdev = 45.1033
+#> Completed at 0.002375
+#> Next point at 0.0002375 with value 0 and continue = 1
+#> search[ 0.002375 ] = 136.743(45.1033)
+#> search[ 0.02375 ] = 136.708(45.1178)
+#> search[ 0.2375 ] = 136.598(45.0972)
+#> search[ 2.375 ] = 136.553(45.0876)
+#> 
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #1 Rep #1 pred log like = 102.69
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #2 Rep #1 pred log like = 194.874
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #3 Rep #1 pred log like = 198.387
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #4 Rep #1 pred log like = 145.273
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #5 Rep #1 pred log like = 75.988
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #6 Rep #1 pred log like = 78.3279
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #7 Rep #1 pred log like = 124.209
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #8 Rep #1 pred log like = 192.831
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #9 Rep #1 pred log like = 153.42
+#> Running at Laplace(91.7663) None  Grid-point #5 at 0.0002375 	Fold #10 Rep #1 pred log like = 101.43
+#> AvgPred = 136.743 with stdev = 45.1033
+#> Completed at 0.0002375
+#> Next point at 0.00014571 with value 136.751 and continue = 0
+#> search[ 0.0002375 ] = 136.743(45.1033)
+#> search[ 0.002375 ] = 136.743(45.1033)
+#> search[ 0.02375 ] = 136.708(45.1178)
+#> search[ 0.2375 ] = 136.598(45.0972)
+#> search[ 2.375 ] = 136.553(45.0876)
+#> 
+#> 
+#> Maximum predicted log likelihood (136.751) estimated at:
+#> 	0.00014571 (variance)
+#> 	117.158 (lambda)
+#> 
+#> Fitting model at optimal hyperparameter
+#> Using prior: Laplace(117.158) None 
+
+#Find out what the optimal hyperparameter was:
+getHyperParameter(fit)
+#> [1] 0.0001457099
+
+#Extract the current log-likelihood, and coefficients
+logLik(fit)
+#> 'log Lik.' -1805.625 (df=3)
+coef(fit)
+#> (Intercept)           1           2 
+#>   -4.287453    0.000000    0.000000 
+
+#We can only retrieve the confidence interval for unregularized coefficients:
+confint(fit, c(0))
+#> Using 1 thread(s)
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#> 
+#> Warning: BLR gradient is ill-conditioned
+#> Enforcing convergence!
+#>             covariate     2.5 %    97.5 % evaluations
+#> (Intercept)         0 -4.321798 -4.253487          23
+
+
+
- - - + + diff --git a/docs/reference/splitTime.html b/docs/reference/splitTime.html new file mode 100644 index 00000000..5b5c91ca --- /dev/null +++ b/docs/reference/splitTime.html @@ -0,0 +1,103 @@ + +Split the analysis time into several intervals for time-varying coefficients. — splitTime • Cyclops + + +
+
+ + + +
+
+ + +
+

splitTime split the analysis time into several intervals for time-varying coefficients

+
+ +
+
splitTime(shortOut, cut)
+
+ +
+

Arguments

+
shortOut
+

A data frame containing the outcomes with predefined columns (see below).

+ + +
cut
+

Numeric: Time points to cut at

+

These columns are expected in the shortOut object:

rowId(integer)Row ID is used to link multiple covariates (x) to a single outcome (y)
y(real)Observed event status
time(real)Observed event time
+ +
+
+

Value

+ + +

A long outcome table for time-varying coefficients.

+
+ +
+ +
+ + +
+ + + + + + + + diff --git a/docs/reference/summary.cyclopsData.html b/docs/reference/summary.cyclopsData.html index 98c75b26..654baf39 100644 --- a/docs/reference/summary.cyclopsData.html +++ b/docs/reference/summary.cyclopsData.html @@ -1,67 +1,12 @@ - - - - - - - -Cyclops data object summary — summary.cyclopsData • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cyclops data object summary — summary.cyclopsData • Cyclops - - - - + + -
-
- -
- -
+
@@ -123,51 +55,49 @@

Cyclops data object summary

summary.cyclopsData summarizes the data held in an Cyclops data object.

-
# S3 method for cyclopsData
-summary(object, ...)
+
+
# S3 method for cyclopsData
+summary(object, ...)
+
+ +
+

Arguments

+
object
+

A Cyclops data object

-

Arguments

- - - - - - - - - - -
object

A Cyclops data object

...

Additional arguments

-

Value

+
...
+

Additional arguments

-

Returns a data.frame that reports simply summarize statistics for each covariate in a Cyclops data object.

+
+
+

Value

+ + +

Returns a data.frame that reports simply summarize statistics for each covariate in a Cyclops data object.

+
+
- - - + + diff --git a/docs/reference/survfit.cyclopsFit.html b/docs/reference/survfit.cyclopsFit.html index 34bbfe06..300ce6f0 100644 --- a/docs/reference/survfit.cyclopsFit.html +++ b/docs/reference/survfit.cyclopsFit.html @@ -1,67 +1,12 @@ - - - - - - - -Calculate baseline hazard function — survfit.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Calculate baseline hazard function — survfit.cyclopsFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,51 +55,53 @@

Calculate baseline hazard function

survfit.cyclopsFit computes baseline hazard function

-
# S3 method for cyclopsFit
-survfit(cyclopsFit, type = "aalen")
+
+
# S3 method for cyclopsFit
+survfit(formula, type = "aalen", ...)
+
+ +
+

Arguments

+
formula
+

A Cyclops survival model fit object

+ + +
type
+

type of baseline survival, choices are: "aalen" (Breslow)

-

Arguments

- - - - - - - - - - -
cyclopsFit

A Cyclops survival model fit object

type

type of baseline survival, choices are: "aalen" (Breslow)

-

Value

+
...
+

for future methods

-

Baseline survival function for mean covariates

+
+
+

Value

+ + +

Baseline survival function for mean covariates

+
+
- - - + + diff --git a/docs/reference/vcov.cyclopsFit.html b/docs/reference/vcov.cyclopsFit.html index f0f653da..b755e776 100644 --- a/docs/reference/vcov.cyclopsFit.html +++ b/docs/reference/vcov.cyclopsFit.html @@ -1,67 +1,12 @@ - - - - - - - -Calculate variance-covariance matrix for a fitted Cyclops model object — vcov.cyclopsFit • Cyclops - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Calculate variance-covariance matrix for a fitted Cyclops model object — vcov.cyclopsFit • Cyclops - - + + - - -
-
- -
- -
+
@@ -123,59 +55,57 @@

Calculate variance-covariance matrix for a fitted Cyclops model object

vcov.cyclopsFit returns the variance-covariance matrix for all covariates of a Cyclops model object

-
# S3 method for cyclopsFit
-vcov(object, control, overrideNoRegularization = FALSE, ...)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
object

A fitted Cyclops model object

control

A "cyclopsControl" object constructed by createControl

overrideNoRegularization

Logical: Enable variance-covariance estimation for regularized parameters

...

Additional argument(s) for methods

- -

Value

- -

A matrix of the estimates covariances between all covariate estimates.

+
+
# S3 method for cyclopsFit
+vcov(object, control, overrideNoRegularization = FALSE, ...)
+
+ +
+

Arguments

+
object
+

A fitted Cyclops model object

+ + +
control
+

A "cyclopsControl" object constructed by createControl

+ + +
overrideNoRegularization
+

Logical: Enable variance-covariance estimation for regularized parameters

+ + +
...
+

Additional argument(s) for methods

+ +
+
+

Value

+ + +

A matrix of the estimates covariances between all covariate estimates.

+
+
- - - + + diff --git a/docs/sitemap.xml b/docs/sitemap.xml new file mode 100644 index 00000000..0ead7e03 --- /dev/null +++ b/docs/sitemap.xml @@ -0,0 +1,186 @@ + + + + /404.html + + + /authors.html + + + /index.html + + + /news/index.html + + + /reference/Cyclops-package.html + + + /reference/Multitype.html + + + /reference/aconfint.html + + + /reference/appendSqlCyclopsData.html + + + /reference/coef.cyclopsFit.html + + + /reference/confint.cyclopsFit.html + + + /reference/convertToCyclopsData.html + + + /reference/convertToCyclopsVariance.html + + + /reference/convertToGlmnetLambda.html + + + /reference/convertToTimeVaryingCoef.html + + + /reference/coverage.html + + + /reference/createAutoGridCrossValidationControl.html + + + /reference/createControl.html + + + /reference/createCyclopsData.html + + + /reference/createNonSeparablePrior.html + + + /reference/createParameterizedPrior.html + + + /reference/createPrior.html + + + /reference/createWeightBasedSearchControl.html + + + /reference/cyclops.html + + + /reference/finalizeSqlCyclopsData.html + + + /reference/fitCyclopsModel.html + + + /reference/fitCyclopsSimulation.html + + + /reference/getCovariateIds.html + + + /reference/getCovariateTypes.html + + + /reference/getCrossValidationInfo.html + + + /reference/getCyclopsPredictiveLogLikelihood.html + + + /reference/getCyclopsProfileLogLikelihood.html + + + /reference/getFineGrayWeights.html + + + /reference/getFloatingPointSize.html + + + /reference/getHyperParameter.html + + + /reference/getNumberOfCovariates.html + + + /reference/getNumberOfRows.html + + + /reference/getNumberOfStrata.html + + + /reference/getNumberOfTypes.html + + + /reference/getSEs.html + + + /reference/getUnivariableCorrelation.html + + + /reference/getUnivariableSeparability.html + + + /reference/index.html + + + /reference/isInitialized.html + + + /reference/isSorted.html + + + /reference/logLik.cyclopsFit.html + + + /reference/meanLinearPredictor.html + + + /reference/mse.html + + + /reference/oxford.html + + + /reference/plotCyclopsSimulationFit.html + + + /reference/predict.cyclopsFit.html + + + /reference/print.cyclopsData.html + + + /reference/print.cyclopsFit.html + + + /reference/printCyclopsRowIds.html + + + /reference/printMatrixMarket.html + + + /reference/readCyclopsData.html + + + /reference/reduce.html + + + /reference/simulateCyclopsData.html + + + /reference/splitTime.html + + + /reference/summary.cyclopsData.html + + + /reference/survfit.cyclopsFit.html + + + /reference/vcov.cyclopsFit.html + + diff --git a/extras/Cyclops.pdf b/extras/Cyclops.pdf index 19e90475..f6e48a3e 100644 Binary files a/extras/Cyclops.pdf and b/extras/Cyclops.pdf differ