0

While using sfa analysis package this error is coming,"Error in as.Formula(formula) : could not find function "as.Formula"

My code:

install.packages("sfa") 
library(frontier)
library(sfa)
truncated_normal<-sfa(formula = lMILK ~ lLAND + lFEED + lCOWS + lLABOR, data = cs)
MrFlick
  • 195,160
  • 17
  • 277
  • 295
DeeDee
  • 1
  • 1
  • 1
    It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. What does the `traceback()` look like? I don't see `as.Formula` in the source code of the package. – MrFlick Feb 14 '19 at 17:41
  • `as.Formula` appears to be from the package `Formula`. Have you tried loading that package manually? – divibisan Feb 14 '19 at 17:51

0 Answers0