View source: R/functions.syn.r
syn.norm | R Documentation |
Generates univariate synthetic data using linear regression analysis.
syn.norm(y, x, xp, proper = FALSE, ...)
y |
an original data vector of length |
x |
a matrix ( |
xp |
a matrix ( |
proper |
a logical value specifying whether proper synthesis should be conducted. See details. |
... |
additional parameters. |
Generates synthetic values using the spread around the
fitted linear regression line of y
given x
.
For proper synthesis first the regression coefficients
are drawn from normal distribution with mean and variance
from the fitted model.
A list with two components:
res |
a vector of length |
fit |
a data frame with regression coefficients and error estimates. |
syn
, syn.normrank
, syn.lognorm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.