linear: Fitting Linear Models and Ploting

Description Usage Arguments Value Author(s)

Description

Fitting data with linear polynomial regression. Plotting fitting curve and export to ppt. The (inverse) prediction for new data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
linear(
  stan,
  res,
  stan.x = NULL,
  stan.y = NULL,
  ppt.fw = 5,
  ppt.fh = 4,
  toppt = FALSE,
  predict = TRUE,
  predict.inverse = FALSE
)

Arguments

stan

dataFrame for fitting linear polynomial regression

res

numeric vector used for prediction

stan.x

the name used for x axis of the fitting plot

stan.y

the name used for y axis of the fitting plot

ppt.fw

figure width in ppt

ppt.fh

figure heigh in ppt

toppt

TRUE or FALSE

predict

TRUE or FALSE

predict.inverse

TRUE or FALSE

Value

a list containing fit and plot

Author(s)

Pan Gao


skqxys/curvefitting documentation built on Sept. 11, 2020, 12:28 a.m.