I refer to a function using a dataset transferred from stata, and I get the following message:
"Attempt to reference field of non-structure array. Error in livsindkomst (line 26) data(find(st_dataset.udd~=uddtype),:)=[]; end"
st_dataset is the data transferred from stata, but it seems like there is a problem refering to this data. Specifically, my aim is to check whether the variable udd equals the variable uddtype, and delete it if it does not. I define the variable uddtype in my programme.
Best Answer