@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