Added in edit: Post #15 was updated while I was writing this post. But I'm still out of here until tomorrow my time.
Refresh your memory of post #7 above.
Then, please reflect on the advice of the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post.
Perhaps if you accompany your example data with the entire code you used - the corrected version of the swrct program and whatever other code was in your do-file - so that someone can start by reading in your data from post #15 and then run exactly the code you show to reproduce the error, someone will be able to help.
Or perhaps someone will guess how variables in your data from post #15 relate to the variables in your code in post #9, and will be interested in modifying the code in post #9 to incorporate the correction I pointed out and any other changes needed to get it to run on the data from post #15.
I'm out of here for the night, so you may again have lost yourself a chance at a quick answer. But Joro's profile tells us he's in London, so while we haven't seen him in the last few hours, perhaps with adequate information he will be interested in trying again while I'm away from Statalist.
Refresh your memory of post #7 above.
Then, please reflect on the advice of the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post.
12. What should I say about the commands and data I use?
Help us to help you by producing self-contained questions with reproducible examples that explain your data, your code, and your problem. This helps yet others too, as they will find it easier to learn from your questions and the answers to them.
Help us to help you by producing self-contained questions with reproducible examples that explain your data, your code, and your problem. This helps yet others too, as they will find it easier to learn from your questions and the answers to them.
Or perhaps someone will guess how variables in your data from post #15 relate to the variables in your code in post #9, and will be interested in modifying the code in post #9 to incorporate the correction I pointed out and any other changes needed to get it to run on the data from post #15.
I'm out of here for the night, so you may again have lost yourself a chance at a quick answer. But Joro's profile tells us he's in London, so while we haven't seen him in the last few hours, perhaps with adequate information he will be interested in trying again while I'm away from Statalist.
Comment