Thanks.

It is true that I can set m manually. I just thought that since the default depended on the length of coef that it was setting it right when coef was a vector. Since when the coef is a name, the default is always 2, the following modification would make the job.


kernel <- function (coef, m = ifelse(is.character(coef), 2, length(coef) - 1), r, name = "unknown")

best regards.


*Pierre Chausse*
Assistant Professor
Department of Economics
University of Waterloo

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to