preparePredictor.fnc {languageR} | R Documentation |
this function figures out the X and Y values for a given (sub)plot, including upper and lower 95% HPD intervals
preparePredictor.fnc(pred, model, m, ylabel, fun, val, xlabel, mcmc, ...)
pred |
character string denoting predictor to be plotted on horizontal axis |
model |
model fit by lmer |
m |
matrix as produced by makeDefaultMatrix.fnc |
ylabel |
label for vertical axis (if other than name of dependent variable |
fun |
character string denoting transformation function for dependent variable, currently only '"plogis"' or '"exp"' |
val |
value of interacting variable |
xlabel |
label for horizontal axis |
mcmc |
MCMC matrix as produced by mcmcsamp or pvals.fnc()$mcmc |
... |
further graphical parameters, currently not implemented |
~~ If necessary, more details than the description above ~~
A data frame with values to be plotted, with columns
X |
values of predictor |
Y |
fitted values |
Type |
logical for whether predictor is factor |
Interaction |
logical for whether predictor is interacting predictor |
Levels |
for factors, the factor level names (only present for factors) |
not intended for independent use
R. H. Baayen
~put references to the literature/web site here ~
See Also as plotLMER.fnc
## Not run: not intended for independent use