linear: Significant Cutoff Value for Linear Regression

Description Usage Arguments Value Examples

View source: R/linear.R

Description

Significant Cutoff Value for Linear Regression

Usage

1
2
linear(data, y, x, cut.numb, n.per, p.cut = 0.05, strict = TRUE,
  include = "low", round = 2, adjust = 1)

Arguments

data

data

y

name for y

x

name for x

cut.numb

number of cutoff points

n.per

the least percentage of the smaller group comprised in all patients

p.cut

cutoff of p value, default is 0.05

strict

logical. TRUE means significant differences for each group combination were considered. FALSE means considering for any combination

include

direction of cutoff point. Any left letter of lower or upper

round

digital. Default is 2

adjust

numeric value, adjust methord for p value. 1, defaulted, represents Bonferroni. 2 represent formula given by Douglas G in 1994

Value

a dataframe contains cutoff points value, subject numbers in each group, dumb variable, beta of regression and p value.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
linear(data=mtcars,y='qsec',x='disp',
       cut.numb=2,
       n.per=0.25)

linear(data=mtcars,y='qsec',x='disp',
       cut.numb=2,
       n.per=0.25,
       p.cut=0.05,
       strict=TRUE,
       include='low',
       round=2)
linear(data=mtcars,y='qsec',x='disp',
       cut.numb=2,
       n.per=0.25,
       p.cut=0.05,
       strict=FALSE,
       include='low',
       round=2)

Example output

1: all combination: 351

2: filter by n.per
   --- 
   ===
   Combination:  30 

3: last combination: 1

   cut1 cut2       n          n.per  dump        beta    pvalue  p.adjust
1 140.8  318 10/14/8 0.31/0.44/0.25 b2/b3 -1.36/-2.42 0.05/0.00 1.37/0.09

1: all combination: 351

2: filter by n.per
   --- 
   ===
   Combination:  30 

3: last combination: 1

   cut1 cut2       n          n.per  dump        beta    pvalue  p.adjust
1 140.8  318 10/14/8 0.31/0.44/0.25 b2/b3 -1.36/-2.42 0.05/0.00 1.37/0.09

1: all combination: 351

2: filter by n.per
   --- 
   ===
   Combination:  30 

3: last combination: 29

    cut1  cut2        n          n.per  dump        beta    pvalue    p.adjust
1  120.3 225.0   8/9/15 0.25/0.28/0.47 b2/b3  0.03/-1.68 0.97/0.03 29.12/ 0.75
2  120.3 258.0  8/10/14 0.25/0.31/0.44 b2/b3  0.11/-1.85 0.88/0.01 26.55/ 0.35
3  120.3 275.8  8/13/11 0.25/0.41/0.34 b2/b3 -0.14/-2.10 0.84/0.01 25.31/ 0.20
4  120.3 301.0  8/14/10 0.25/0.44/0.31 b2/b3 -0.42/-1.91 0.58/0.02 17.26/ 0.65
5  120.3 304.0   8/15/9 0.25/0.47/0.28 b2/b3 -0.48/-1.97 0.52/0.02 15.51/ 0.63
6  120.3 318.0   8/16/8 0.25/0.50/0.25 b2/b3 -0.56/-2.00 0.45/0.02 13.48/ 0.72
7  121.0 225.0   9/8/15 0.28/0.25/0.47 b2/b3  0.04/-1.67 0.96/0.02 28.82/ 0.62
8  121.0 258.0   9/9/14 0.28/0.28/0.44 b2/b3  0.13/-1.85 0.87/0.01 25.95/ 0.28
9  121.0 275.8  9/12/11 0.28/0.38/0.34 b2/b3 -0.14/-2.10 0.83/0.01 25.00/ 0.16
10 121.0 301.0  9/13/10 0.28/0.41/0.31 b2/b3 -0.44/-1.90 0.54/0.02 16.25/ 0.55
11 121.0 304.0   9/14/9 0.28/0.44/0.28 b2/b3 -0.51/-1.97 0.48/0.02 14.42/ 0.53
12 121.0 318.0   9/15/8 0.28/0.47/0.25 b2/b3 -0.59/-1.99 0.41/0.02 12.31/ 0.61
13 140.8 258.0  10/8/14 0.31/0.25/0.44 b2/b3 -0.82/-2.28 0.26/0.00   7.94/0.03
14 140.8 275.8 10/11/11 0.31/0.34/0.34 b2/b3 -0.97/-2.52 0.15/0.00   4.39/0.02
15 140.8 301.0 10/12/10 0.31/0.38/0.31 b2/b3 -1.26/-2.33 0.07/0.00   2.12/0.07
16 140.8 304.0  10/13/9 0.31/0.41/0.28 b2/b3 -1.30/-2.39 0.06/0.00   1.76/0.07
17 140.8 318.0  10/14/8 0.31/0.44/0.25 b2/b3 -1.36/-2.42 0.05/0.00   1.37/0.09
18 145.0 275.8 11/10/11 0.34/0.31/0.34 b2/b3 -0.39/-2.20 0.56/0.00 16.89/ 0.07
19 145.0 301.0 11/11/10 0.34/0.34/0.31 b2/b3 -0.73/-2.01 0.30/0.01   9.04/0.26
20 145.0 304.0  11/12/9 0.34/0.38/0.28 b2/b3 -0.79/-2.07 0.26/0.01   7.68/0.26
21 145.0 318.0  11/13/8 0.34/0.41/0.25 b2/b3 -0.87/-2.10 0.21/0.01   6.16/0.31
22 146.7 275.8  12/9/11 0.38/0.28/0.34 b2/b3 -0.69/-2.31 0.32/0.00   9.49/0.03
23 146.7 301.0 12/10/10 0.38/0.31/0.31 b2/b3 -1.04/-2.11 0.14/0.00   4.22/0.14
24 146.7 304.0  12/11/9 0.38/0.34/0.28 b2/b3 -1.09/-2.18 0.12/0.00   3.47/0.13
25 146.7 318.0  12/12/8 0.38/0.38/0.25 b2/b3 -1.16/-2.20 0.09/0.01   2.65/0.16
26 160.0 301.0  14/8/10 0.44/0.25/0.31 b2/b3 -0.48/-1.81 0.52/0.01 15.60/ 0.39
27 160.0 304.0   14/9/9 0.44/0.28/0.28 b2/b3 -0.56/-1.88 0.43/0.01 13.01/ 0.38
28 160.0 318.0  14/10/8 0.44/0.31/0.25 b2/b3 -0.67/-1.90 0.34/0.02 10.14/ 0.46
29 167.6 318.0   16/8/8 0.50/0.25/0.25 b2/b3 -0.86/-1.91 0.24/0.01   7.10/0.37

cutoff documentation built on Jan. 11, 2020, 9:39 a.m.

Related to linear in cutoff...