2
0
Fork 0
R Package implementing the CVE (Conditional Variance Estimation) Method for SDR (Sufficient Dimension Reduction).
Go to file
Daniel Kapla 4d2651fe8a wip: writing C gradient version 2019-09-12 18:42:28 +02:00
CVE wip: writing C gradient version 2019-09-12 18:42:28 +02:00
CVE_R wip: writing C gradient version 2019-09-12 18:42:28 +02:00
CVE_legacy add: runtime test, 2019-08-30 21:16:52 +02:00
LICENSE add: sample Package 2019-06-21 11:40:57 +02:00
README.md add: runtime_test demo 2019-08-14 20:05:42 +02:00
cve_V0.R add: CVE, 2019-08-10 00:08:17 +02:00
cve_V1.cpp wip: proper package implementation 2019-08-12 00:33:52 +02:00
cve_V2.cpp wip: proper package implementation 2019-08-12 00:33:52 +02:00
notes.md wip: writing C gradient version 2019-09-12 18:42:28 +02:00
runtime_test.R wip: writing C gradient version 2019-09-12 18:42:28 +02:00
runtime_tests_grad.cpp sync 2019-08-25 16:51:37 +02:00
validate.R init 2019-08-09 23:34:37 +02:00
wip.R wip: writing C gradient version 2019-09-12 18:42:28 +02:00
wip.c wip: writing C gradient version 2019-09-12 18:42:28 +02:00
wip.h wip: writing C gradient version 2019-09-12 18:42:28 +02:00

README.md

Overview

  • CVE/: Contains actual R package.
  • CVE_legacy/: Contains original (first) R implementatin of the CVE method. The *.R and *.cpp files in the root directory are development and test files.

TODO: README.md

Package Structure

Demos

A demo is an .R file that lives in demo/. Demos are like examples but tend to be longer. Instead of focussing on a single function, they show how to weave together multiple functions to solve a problem.

You list and access demos with demo():

  • Show all available demos: demo().
  • Show all demos in a package: demo(package = "CVE").
  • Run a specific demo: demo("runtime_test", package = "CVE").
  • Find a demo: system.file("demo", "runtime_test.R", package = "CVE").

Each demo must be listed in demo/00Index in the following form: demo-name Demo description. The demo name is the name of the file without the extension, e.g. demo/runtime_test.R becomes runtime_test.

By default the demo ask for human input for each plot: "Hit to see next plot". This behaviour can be overridden by adding devAskNewPage(ask = FALSE) to the demo file. You can add pauses by adding: readline("press any key to continue").

Note: Demos are not automatically tested by R CMD check. This means that they can easily break without your knowledge.