Learn R Programming

ndvtest (version 1.0-0)

sim_lm: Simulated pdfs for the Vuong statistics using linear models

Description

This function can be used to reproduce the examples given of Shi (2015) which illustrate the fact that the distribution of the Vuong statistic may be very different from a standard normal

Usage

sim_lm(N = 1000, R = 1000, Kf = 15, Kg = 1, a = 0.125)

Arguments

N

sample size

R

the number of replications

Kf

the number of covariates for the first model

Kg

the number of covariates for the second model

a

the share of the variance of y explained by the two competing models

Value

a numeric of length N containing the values of the Vuong statistic

References

SHI:15ndvtest

Examples

Run this code
# NOT RUN {
sim_lm(N = 100, R = 10, Kf = 10, Kg = 2, a = 0.5)
# }

Run the code above in your browser using DataLab