move.1 | R Documentation |
Calculates the Maintenance Of Variance Extension, Type 1 (MOVE.1) for record extension by fitting a Line of Organic Correlation (LOC) regression model.
move.1(formula, data, subset, na.action, distribution = "normal")
formula |
a formula object with the response variable on the left of the ~ operator and a single explantory variable on the right. |
data |
the data frame containing the variables named in |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
na.action |
a function that indicates what should happen when the data
contain missing values (NAs). The default is set by the |
distribution |
either "normal," "lognormal," or "commonlog" indicating nature of the bivariate distribution, See Details. |
If distribution
is "normal," then the data in x
and y
are assumed to have a bivariate normal distribution. Otherwise, they are
assumed to have a bivariate log-normal distribution and a logarithmic
transform is applied to both x
and y
before analysis. The
natural logarithm is used if distribution
is "lognormal" and the
commmon logarithm is used if distribution
is "commonlog."
An object of class "move.1" having these components:
coefficients |
the intercept and slope of the line describing the fit. |
na.action |
a character string indicating the special handling of NAs. |
R |
Pearson's correlation coefficient. |
call |
the
matched call to |
fitted.values |
the fitted LOC values for the response. |
residuals |
a 2-column matrix containing the
signed distance from the predicted to to the corresponding |
x |
the (possibly transformed) values for |
y |
the (possibly transformed) values for |
x.stats |
the mean and standard deviation of the (possibly
transformed) values for |
y.stats |
the mean and standard
deviation of the (possibly transformed) values for |
var.names |
the names of |
model |
the model frame. |
Objects of class "move.1" have print
, predict
, and
plot
methods.
Hirsch, R.M., 1982, A comparison of four streamflow record extension techniques: Water Resources Research, v. 18, p. 1081–1088.
predict.move.1
, plot.move.1
library(smwrData) data(IonBalance) # Build model for non missing Alkalinity IB.move <- move.1(Anion_sum ~ Cation_sum, data=IonBalance, subset=abs(Pct_Diff) < 10) print(IB.move)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.