search for: rfres

Displaying 1 result from an estimated 1 matches for "rfres".

Did you mean: rfrees
2024 Oct 30
1
Invalid term in model formula with gmm after formula.tools is loaded
...del can be estimated if I load formula.tools?I need to restart R each time. Here is a simple reproducible example: *library(gmm)data(Finance)r <- Finance[1:300, 1:10]rm <- Finance[1:300, "rm"]rf <- Finance[1:300, "rf"]z <- as.matrix(r-rf)zm <- rm-rfres <- gmm(z ~ zm, x = ~ zm)summary(res)# Now the model cannot be estimated is formula.tools is loadedlibrary(formula.tools)res <- gmm(z ~ zm, x = ~ zm) # invalid term in model formula# Even if I detach detach("package:formula.tools", unload = TRUE)res <- gmm(z ~ zm, x = ~ zm) # inva...