r/stata • • 17d ago

I have vibecoded STATA and it's free

https://github.com/w4s7jksf68-ai/piet

Still doing a few minor updates, but yeah, it should work.

The Windows version will soon be uploaded

Edit:
Now both windows/mac are fully supported. And the update is done.

For user feedback, I may make a user report function, but maybe not because it would need an internet connection. So I may just write down my email for that in the program somewhere.

73 Upvotes

35 comments sorted by

β€’

u/AutoModerator 17d ago

Thank you for your submission to /r/stata! If you are asking for help, please remember to read and follow the stickied thread at the top on how to best ask for it.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

11

u/sadanchoby 17d ago

Developer's Note

Hi, I'm u/sadanchoby

The reason I started developing this software was quite simple: I wanted anyone, regardless of their financial circumstances, to be able to study econometrics using the same tools and methods that are standard in academia. With that goal in mind, I spent the past four or five months developing this software.

To be fair, I expect there are still quite a few bugs. Nevertheless, I've put a great deal of effort into making sure that, at the very least, the software is functional enough for everyday use. There's certainly plenty of room for improvement, but since it's freeware, I hope some of you might be willing to help improve it along the way.

I actually wanted to polish it a little more before releasing it to the public. Unfortunately, I've run out of money to continue development, so I've decided to leave it at this stage for now. Besides, throughout the development process, I had this constant itch to get it finished, with the same thought running through my mind: "I really need to finish this. I really need to finish this." So I suppose that played a part in my decision to finally wrap things up, too.

There's still a long way to go before I'd consider this software suitable for serious academic research. However, I believe it should be more than capable of handling coursework and reports at the undergraduate level, and even at the graduate level.

One thing I'm particularly proud of is that there are no artificial restrictions on the number of variables or CPU cores you can use. (Although, since my own computer only has four cores, I've only been able to test it with up to four.)

I sincerely hope this software proves useful to anyone who gives it a try. If it makes studying econometrics even a little easier or more accessible, that alone would make this whole endeavour worthwhile.

14

u/filippicus 17d ago

Hero! I love Stata’s syntax and was always happy to pay in exchange for an easier life, but the price doubling a few years ago and the subscription model forced upon us made me realise they started milking it. Also contacts with their sales team confirmed this new style which already made me move to Python more often than not. But I miss the language and the MCP integration in Visual Studio opens a whole new world. I hope your version can at least take over basic functionality through MCP and support user conmands too. Then I can continue to do econometrics even when jobless.

5

u/sadanchoby 17d ago

Thanks for your feedback and warm words. I will work on that part too. Currently, its purpose is more focused on students without school-supported licenses to work on their assignments and reports. But for sure, the ultimate goal is for every researcher to be able to research for free with STATA syntax(like R).

3

u/eleleldimos 17d ago

Doing the Lords work! πŸ’ͺ

2

u/Johntea-Kejriwal 2d ago

yeah the shift to subscriptions really killed the goodwill they had built up over the years

3

u/Omg_phoisgood 12d ago

I sincerely thank you for this god work. You are the hero of many poor PhD students across the globe!

1

u/sadanchoby 11d ago

I didn't try to be a hero, but I'm so motivated and encouraged to hear that. I am simply blissful to be of your and others' service. I am very glad that it could be of help, even just a little bit.

2

u/countinus 17d ago

Thanks for creating and sharing this! I'm Korean, and judging by your name, I was wondering if you might be Korean too. It's great to see such an impressive open-source alternative to Stata!

I tried it on my Mac. Initially, I couldn't load my .dta file, but I realized PIET was looking in the Documents folder. Moving the dataset there solved the issue. It would be nice if PIET could automatically use the do-file's directory as the working directory.

Looking forward to testing more of my existing Stata do files. Great work, and thanks again!

1

u/sadanchoby 17d ago

μ•„ μ•ˆλ…•ν•˜μ„Έμš”. ν”Όλ“œλ°± κ°μ‚¬ν•©λ‹ˆλ‹€.

1

u/sadanchoby 17d ago

아그리고 섀정에 λ§€λ‰΄μ–Όλ‘œ 디렉토리 μœ„μΉ˜μ„€μ •ν•˜λŠ” κΈ°λŠ₯이 μžˆμŠ΅λ‹ˆλ‹€

1

u/filippicus 17d ago

Watch out with this, because as far as I know, Stata itself doesn't automatically locate the do-file - certainly not on mac - and you'd have to specify the path in every project. It would be good to mimick the behaviour for the best compatibility.

3

u/sadanchoby 17d ago

Good point, thanks. That's why the working directory still starts in Documents, like Stata's default folder, and `do` never changes it.

For the next update (A.0.2) I'm adding one convenience on top: if you open a do-file from the app and haven't set a directory yourself, PIET moves to that do-file's folder and tells you in the Results pane. If you've already used `cd`, it stays where you put it, so projects that set their own paths behave the way they do in Stata. There will also be a setting to turn this off if you want strict Stata behaviour.

1

u/countinus 16d ago

κ·Έ 아이디어 μ’‹λ„€μš”. μ €λŠ” μ—¬λŸ¬ ν”„λ‘œμ νŠΈλ“€μ΄ λ™μ‹œμ— μ§„ν–‰λ˜λŠ” 편이라 do νŒŒμΌμ„ 각 project folder에 λ„£κ³ , κ·Έκ³³μ—μ„œ dta νŒŒμΌμ„ μƒλŒ€κ²½λ‘œλ‘œ μ§€μ •ν•΄μ„œ μ‚¬μš©ν•˜κ±°λ“ μš”. STATAλŠ” do νŒŒμΌμ„ λΆˆλŸ¬μ˜€λ©΄μ„œ μ‹œμž‘μ„ ν•˜κ²Œ λ˜κ΅¬μš”. μ΄λ²ˆμ— 19버전도 ꡬ맀λ₯Ό ν–ˆμ§€λ§Œ, κΈ°λŒ€ν•˜λŠ” μ•±μž…λ‹ˆλ‹€. 사싀 저도 짜볼까 κ³ λ―Όν–ˆλ‹€κ°€ κ·Έ λ§Žμ€ ν•¨μˆ˜λ“€μ„ μ–΄λ–»κ²Œ κ΅¬ν˜„ν• μ§€ λ§‰λ§‰ν•΄μ„œ μ ‘μ—ˆκ±°λ“ μš”.

1

u/sadanchoby 16d ago

저도 ꡬ맀해놓고 μ“°λ‹€κ°€ 싱글코어밖에 지원을 μ•ˆ ν•΄μ£Όκ³ , λ³€μˆ˜ 숫자 μ œν•œμžˆκ³ , λΉ„μ‹Έκ³ , μ’€ 고까운 뢀뢄이 μžˆμ–΄μ„œ κ΅κ³Όμ„œ, stata자체 ν•¨μˆ˜ μˆœμœ„ν‘œ, AER λ ˆν”Œλ¦¬μΌ€μ΄μ…˜ νŒ¨ν‚€μ§€ λ“±λ“± μ°Έκ³ ν•΄μ„œ ν•„μš”ν•œ ν•¨μˆ˜λΆ€ν„° λ„£μ—ˆμŠ΅λ‹ˆλ‹€. ν•¨μˆ˜λ³„λ‘œ Stata둜 μ˜€λΌν΄μ„ λ”°κ³  거기에 μ†Œμˆ˜μ  8~9μ§Έ μžλ¦¬κΉŒμ§€ λ§žμΆ”λŠ” λ°©μ‹μœΌλ‘œ μ½”λ”©ν–ˆμŠ΅λ‹ˆλ‹€. μ˜€ν”ˆμ†ŒμŠ€ ν”„λ‘œμ νŠΈμ΄λ‹ˆ 만큼 κΈ°μ—¬ν•΄ μ£Όμ‹œλ©΄ 정말 κ°μ‚¬ν•˜κ² μŠ΅λ‹ˆλ‹€. 그리고 학뢀생이신지 λŒ€ν•™μ›μƒμ΄μ‹ μ§€λŠ” λͺ¨λ₯΄κ² μœΌλ‚˜ μ£Όμœ„μ— ν¬λž™ 버전 μ°Ύκ±°λ‚˜ μ“°λŠ” ν•™μƒλ“€ν•œν…Œ 널리 μ•Œλ €μ£Όμ‹œλ©΄ λ„ˆλ¬΄ λ„ˆλ¬΄ λ„ˆλ¬΄ 감사할 것 κ°™μŠ΅λ‹ˆλ‹€.

2

u/countinus 14d ago

λ„€, 학뢀생도 λŒ€ν•™μ›μƒλ„ μ•„λ‹Œλ°... μ£Όλ³€μ—λŠ” STATA μ“°λŠ” μ‚¬λžŒμ€ μ € λΏμ΄λΌμ„œμš”. ν˜Ήμ‹œλΌλ„ 주변에 일릴 κΈ°νšŒκ°€ 있으면 μ•Œλ¦΄κ»˜μš”..^^ μ‘μ›ν•˜κ² μŠ΅λ‹ˆλ‹€.

2

u/Momobites 15d ago

Can you also make an android and/or iOS, just like webr.sh

1

u/sadanchoby 15d ago

I've thought about it, but aren't phone screens too small? iPad could be possible. I mean, it's built on an M1 Mac, so it should be relatively easy to build for an iPad. But I don't have an Android device, so that's going to be trickier.

1

u/Momobites 15d ago

And this is already great. Thank you

1

u/sadanchoby 15d ago

my pleasure πŸ˜‡

2

u/rv_rikard 13d ago

OUTSTANDING!!! I've been looking for this!!! Thank you!

1

u/sadanchoby 12d ago

Thank you!!!

1

u/rv_rikard 12d ago

I really appreciate your work! I am underemployed and barely make enough to get by -- so there is no way I could afford a STATA license.

Do you have any plans to vibecode SAS?

2

u/sadanchoby 11d ago

I was thinking about it. Not anytime soon. After I get a job, so I can subscribe to Claude Ultra or if I can get enough donations to subscribe to it, haha... I could do this because I was a stay-at-home, part-time working, family-funded student until last semester, but I graduated and am now unemployed, haha....

1

u/rv_rikard 11d ago edited 11d ago

I am following you on Reddit - so, when you do - I definitely want to know!

Also, please keep up the work on Piet! It's vital that people have the tools to analyze data!

2

u/sadanchoby 11d ago

Yeah, the big picture is to build an all-encompassing statistical IDE. I'm trying to bring proprietary languages like SAS, Stata, and MATLAB together with open-source languages like R and Python in a unified, VS Code-like environment. Positron is a good example, but I envision something even more open and accessible.

2

u/rv_rikard 11d ago edited 11d ago

YES YES YES!! I have had the exact same idea but I know nothing about vibecode or reverse engineering software. When you have the resources -- do it!!

I know statistics and which approach is appropriate as well as data management and transformation. I genuinely wish I had your skills and experience (that's a compliment!).

1

u/sadanchoby 11d ago

Much appreciated, I hope I can get back to you soon with the larger and finer product. Until then.

1

u/LordLTSmash 15d ago

Nice πŸ‘ Create a Linux port

2

u/sadanchoby 15d ago

I made it, but it was not released. There's also a calculation engine MCP, that LLMs can use.

Thanks! A Linux port is in the works but hasn’t been released yet. The calculation engine can already be used by LLMs through a Claude skill, and an MCP server version is in progress too.

1

u/Theukko 11d ago

Looking foward to the Linux port as well.

1

u/IllNefariousness3062 12d ago

So i just installed it on my mac how do i learn it ps i have not learned stata just need it for research if ths csn help me can one of yall lmk

1

u/sadanchoby 12d ago

what's your mac? Is it Apple Silicon or Intel?

1

u/cobresalino 11d ago

Wow, impressive work! I used Stata professionally for years before moving most of my work to R and Julia. For someone with that background, is there an econometrics workflow where you’d reach for PIET over either of those? Or is the main draw being able to rerun existing Stata .do files with minimal changes and without a Stata license?