errorsINx(mu = 12.5, n = 200, a = 15, b = 1.5, SDx=2, SDyerr = 1.5,
timesSDx=(1:5)/2.5, gpfactor=if(missing(gpdiff))FALSE else TRUE,
gpdiff=if(gpfactor) 1.5 else 0, layout=NULL,
parset = simpleTheme(alpha = 0.75, col = c("black","gray45"),
col.line = c("black","gray45"), lwd=c(1,1.5), pch=c(1,2),
lty=c(1,2)), print.summary=TRUE, plotit=TRUE, xrelation="same")
y
where $z$ is measured without errortimesSDx
, as a
multiple of SDx
relation
component of
scales
to "same"
or "free"
or (though this does
not make make sense here) "sliced"
.length(timesSDx)+2
columns. Values of $z$ are
in the first column. There is one further column (x with error) for
each element of timesSDx
, followed by a column for $y$.
If there is a grouping variable, a further column identifies the
groups.timesSDx
can be a numeric vector.
One set of $x$-values that are contaminated with measurement error
is simulated for each element of timesSDx
.library(lattice)
errorsINx()
errorsINx(gpdiff=2, timesSDx=1.25, SDyerr=2.5, n=80)
Run the code above in your browser using DataLab