2
0
Fork 0
R Package implementing the CVE (Conditional Variance Estimation) Method for SDR (Sufficient Dimension Reduction).
Go to file
Daniel Kapla 0b2b1b76e6 Improved runtime of pure R grad. 2019-09-16 11:57:10 +02:00
CVE_C add: C implementation, 2019-09-16 11:15:51 +02:00
CVE_R Improved runtime of pure R grad. 2019-09-16 11:57:10 +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
benchmark.R cleanup 2019-09-16 11:28:06 +02:00
benchmark.c cleanup 2019-09-16 11:28:06 +02:00
benchmark.h cleanup 2019-09-16 11:28:06 +02:00
build_install.R cleanup 2019-09-16 11:28:06 +02:00
notes.md add: C implementation, 2019-09-16 11:15:51 +02:00
runtime_test.R wip: cleanup 2019-09-16 11:23:09 +02:00
test.R Improved runtime of pure R grad. 2019-09-16 11:57:10 +02:00
wip.R Improved runtime of pure R grad. 2019-09-16 11:57:10 +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.