79803920

Date: 2025-10-29 14:54:16
Score: 2.5
Natty:
Report link

@jared_mamrot

Question: I want to calculate elasticities, so I am using elastic().

ep2 <- elastic(est,type="price",sd=FALSE)

ed <- elastic(est,type="demographics",sd=FALSE)

ei <- elastic(est,type="income",sd=FALSE)

ep2 and ed are working, but when type="income", running ei shows an error:

Error in dimnames(x) <- dn : 
  length of 'dimnames' [2] not equal to array extent
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • User mentioned (1): @jared_mamrot
  • Low reputation (1):
Posted by: Yan Jin