I'm unable to use the cendif command within the somersd package. The error I get is identical to that mentioned here. If I type:
Code:
sysuse auto.dta
Code:
cendif price, by(foreign)
, I get the error:

Code:
tidotforsomersd():  3499  tidottree() not found
I have updated my libraries (
Code:
mata: mata mlib query
returns a library list ending in lsomersd), restarted Stata, updated the package (
Code:
adoupdate somersd
), and restarted my computer. However, I cannot seem to update ALL ado files... when I try
Code:
update all
, I get the error/stop message
Code:
cannot write in directory /Applications/Stata/ado/base/0
. So perhaps this is the problem? I've looked and this folder exists but is empty. I have no idea why Stata would have trouble writing into it.

Help would be appreciated!