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)

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

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)

yikeshu0611/cutoff documentation built on Dec. 4, 2019, 6:26 a.m.