cubic: Fitting Cubic polynomial regression and Ploting

Description Usage Arguments Value Author(s)

View source: R/cubic_polynomial_regression.R

Description

Fitting data with cubic polynomial regression. Plotting fitting curve and export to ppt. The prediction for new data

Usage

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

Arguments

stan

dataFrame for fitting cubic 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

Value

a list containing fit and plot

Author(s)

Pan Gao


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