0

I am using trade data, and studying the export model. I want to use HT method, but it gives me this error. I have read across but I can't seem to fix it.

R <- pht(pdata$LnExport ~ pdata$LnGDP_L + pdata$capp + pdata$NRr + pdata$Index2 + pdata$EFI + pdata$lldpc| pdata$lldpc, data=pdata, model = "ht", na.action = FALSE) 
  Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data,  : 
    attempt to apply non-function
summary(R)
m0nhawk
  • 22,980
  • 9
  • 45
  • 73
  • you dont need to reference `pdata$` in the formula, it will be evaluated in the environment of `data=pdata`. Also what does | refer to? usually I use +, -, :,* and ^. – Jean Mar 16 '17 at 10:28
  • The `|` is for multi-parts formulae from package `Formula`. – Helix123 Mar 19 '17 at 00:01

0 Answers0