LS.plot: Plot least squares regression

Description Usage Arguments Value Examples

View source: R/LSfunctions.R

Description

Plot least squares regression

Usage

1
LS.plot(model, var = NULL, ...)

Arguments

model

output from LS.model

var

string value of which input variable to plot

...

additional arguments to be passed to plot

Value

a plot of the model output against an input variable with predicted line from model

Examples

1
2
3
df = data.frame(y = c(1,2,3,4), x = c(2,5,3,1))
m = LS.model(y~x, data=df)
LS.plot(m,var="x")

DanielWilliamsS/simpleLS documentation built on Jan. 7, 2020, 3:31 p.m.