View source: R/plot.residuals.dfrr.R
plot.residuals.dfrr | R Documentation |
The output gives the qq-plot of estimated measurment error.
## S3 method for class 'residuals.dfrr'
plot(x, ...)
## S3 method for class 'dfrr'
qq(x, ...)
x |
a |
... |
graphical parameters passed to |
This function generates the QQ-plot of residuals.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.