plot.coef.dfrr: Plot dfrr coefficients

Description Usage Arguments Examples

View source: R/plot.coef.dfrr.R

Description

Plot a coef.dfrr object. The output is the plot of regression coefficients.

Usage

1
2
## S3 method for class 'coef.dfrr'
plot(x, select = NULL, ask.hit.return = TRUE, ...)

Arguments

x

a coef.dfrr-object.

select

a vector of length one or more of indices of regression coefficients to plot.

ask.hit.return

a boolean indicating whether to wait for interaction of the user between any two plots.

...

graphical parameters passed to plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
set.seed(2000)
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)
dfrr_fit<-dfrr(Y~X,yind=time)

coefs<-coef(dfrr_fit)
plot(coefs)

asgari-fatemeh/dfrr documentation built on Aug. 12, 2020, 3:06 a.m.