Learn R Programming

fDMA (version 2.2.8)

plot.altf2: Plots Selected Outcomes from altf2 Object.

Description

The function plots selected outcomes from altf2 object.

Usage

# S3 method for altf2
plot(x,non.interactive=NULL, ...)

Value

Called for making a plot.

Arguments

x

an object of altf2 class

non.interactive

optional, logical, indicate whether plots should be made in non-interactive mode, by default non.interactive=FALSE, i.e., the user specifies in the interactive menu which plots will be made

...

not used

Details

After executing the command, the User is asked to choose

1 - for plotting expected coefficients in separate png files, saved in the temporary directory, and moreover, to paste them into one big plot (also saved as a png file in the temporary directory),

2 - for plotting p-values (averaged over selected models) for t-test of statistical significance for regression coefficients from applied models, in separate png files, saved in the temporary directory, and moreover, to paste them into one big plot (also saved as a png file in the temporary directory),

3 - for plotting weights of all models used in averaging,

4 - for plotting relative variable importance in separate png files, saved in the temporary directory, and moreover, to paste them into one big plot (also saved as a png file in the temporary directory),

5 - for plotting expected number of variables (incl. constant) from all models used in averaging.

Chosing 0 exits the plot command.

If non.interactive=TRUE all the above plots are made.

Examples

Run this code
# \donttest{
wti <- crudeoil[-1,1]
drivers <- (lag(crudeoil[,-1],k=1))[-1,]
a <- altf2(y=wti,x=drivers[,5:7],av="aic")

plot(a,non.interactive=TRUE)
# }

Run the code above in your browser using DataLab