plot.residuals.dfrr {dfrr} | R Documentation |
QQ-plot for dfrr residuals
Description
The output gives the qq-plot of estimated measurment error.
Usage
## S3 method for class 'residuals.dfrr'
plot(x, ...)
## S3 method for class 'dfrr'
qq(x, ...)
Arguments
x |
a |
... |
graphical parameters passed to |
Value
This function generates the QQ-plot of residuals.
Examples
N<-50;M<-24
X<-rnorm(N,mean=0)
time<-seq(0,1,length.out=M)
Y<-simulate_simple_dfrr(beta0=function(t){cos(pi*t+pi)},
beta1=function(t){2*t},
X=X,time=time)
#The argument T_E indicates the number of EM algorithm.
#T_E is set to 1 for the demonstration purpose only.
#Remove this argument for the purpose of converging the EM algorithm.
dfrr_fit<-dfrr(Y~X,yind=time,T_E=1)
resid<-residuals(dfrr_fit)
plot(resid)
# We can also use the qq function to draw the QQ-plot.
[Package dfrr version 0.1.5 Index]