check.scenarios: Check density of the responses and functional processes

Description Usage Arguments Value Author(s) Examples

View source: R/scenarios.R

Description

check.scenarios produces plots displaying the densities of the response for different deviations. check.betas displays a sample of the functional process, the functional coefficient associated and its estimation based on 100 observations.

Usage

1
2
3
4
5
check.scenarios(scenarios = 1:9, composite = TRUE, times = TRUE,
  R2 = 0.95, M = 1000, main = FALSE)

check.betas(scenarios = 1:9, n = 100, R2 = 0.95, times = TRUE,
  est.beta = TRUE, main = FALSE)

Arguments

scenarios

a vector giving the simulation scenarios to be checked.

composite

flag to indicate the generation of data according to a functional linear model with non-null coefficient (TRUE) or with a null coefficient (FALSE).

times

flag to indicate whether to show the time employed computing each model.

R2

proportion of variance of the response Y explained by the linear model when delta = 0. This is used to compute the variance of the error ε of the regression model.

M

number of samples employed to estimate the densities of the response.

main

whether to show a caption indicating the scenario or not.

n

the sample size.

est.beta

flag to indicate whether to plot the functional coefficient estimate.

Value

Nothing. The functions are called for producing diagnostic plots.

Author(s)

Eduardo García-Portugués (edgarcia@est-econ.uc3m.es).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Check scenarios and deviations
set.seed(3257641)
check.scenarios()

# Check betas
set.seed(3257641)
check.betas()

## End(Not run)

egarpor/rp.flm.test documentation built on Oct. 20, 2021, 12:31 a.m.