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