iRegression: Interfaces for iRegression package for data science...

Description Usage Arguments Details Value Author(s) Examples

Description

Interfaces to iRegression functions that can be used in a pipeline implemented by magrittr.

Usage

1
2
3
4
5

Arguments

data

data frame, tibble, list, ...

...

Other arguments passed to the corresponding interfaced function.

Details

Interfaces call their corresponding interfaced function.

Value

Object returned by interfaced function.

Author(s)

Roberto Bertolusso

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## Not run: 
library(intubate)
library(magrittr)
library(iRegression)

## bivar
data("soccer.bivar", package = "iRegression")

## Original function to interface
bivar(yMin ~ t1Min + t2Min, "identity", yMax ~ t1Max + t2Max, "identity", data = soccer.bivar)

## The interface puts data as first parameter
ntbt_bivar(soccer.bivar, yMin ~ t1Min + t2Min, "identity", yMax ~ t1Max + t2Max, "identity")

## so it can be used easily in a pipeline.
soccer.bivar %>%
  ntbt_bivar(yMin ~ t1Min + t2Min, "identity", yMax ~ t1Max + t2Max, "identity")

## ntbt_ccrm
data("Cardiological.CR", package = "iRegression")
## Original function to interface
ccrm(PulseC ~ SystC + DiastC, PulseR ~ SystR + DiastR, data = Cardiological.CR)

## The interface puts data as first parameter
ntbt_ccrm(Cardiological.CR, PulseC ~ SystC + DiastC, PulseR ~ SystR + DiastR)

## so it can be used easily in a pipeline.
Cardiological.CR %>%
  ntbt_ccrm(PulseC ~ SystC + DiastC, PulseR ~ SystR + DiastR)

## ntbt_cm
data("Cardiological.MinMax", package = "iRegression") ## see Billard and Diday (2000)
## Original function to interface
cm(PulseMin ~ SystMin + DiastMin, PulseMax ~ SystMax + DiastMax, data = Cardiological.MinMax)

## The interface puts data as first parameter
ntbt_cm(Cardiological.MinMax, PulseMin ~ SystMin + DiastMin, PulseMax ~ SystMax + DiastMax)

## so it can be used easily in a pipeline.
Cardiological.MinMax %>%
  ntbt_cm(PulseMin ~ SystMin + DiastMin, PulseMax ~ SystMax + DiastMax)

## ntbt_crm
data("Cardiological.CR", package = "iRegression")
## Original function to interface
crm(PulseC ~ SystC + DiastC, PulseR ~ SystR + DiastR, data = Cardiological.CR)

## The interface puts data as first parameter
ntbt_crm(Cardiological.CR, PulseC ~ SystC + DiastC, PulseR ~ SystR + DiastR)

## so it can be used easily in a pipeline.
Cardiological.CR %>%
  ntbt_crm(PulseC ~ SystC + DiastC, PulseR ~ SystR + DiastR)

## ntbt_MinMax
data("Cardiological.MinMax", package = "iRegression") ## see Billard, L. and Diday, E. (2000)
## Original function to interface
MinMax(PulseMin ~ SystMin + DiastMin, PulseMax ~ SystMax + DiastMax, data = Cardiological.MinMax)

## The interface puts data as first parameter
ntbt_MinMax(Cardiological.MinMax, PulseMin ~ SystMin + DiastMin, PulseMax ~ SystMax + DiastMax)

## so it can be used easily in a pipeline.
Cardiological.MinMax %>%
  ntbt_MinMax(PulseMin ~ SystMin + DiastMin, PulseMax ~ SystMax + DiastMax)

## End(Not run)

intubate documentation built on May 2, 2019, 2:46 p.m.