Stata compatibility
Compatibility information updated 2026-08-03.
stats.camp implements a growing subset of the Stata command language in the browser. This page lists the commands known to the current parser and marks their implementation status, grouped by task. It is generated from the same command registry that powers the application, and an automated test keeps it in sync with the code.
Independent software. Not affiliated with, sponsored by, or endorsed by StataCorp LLC.
Supported means the common forms of the command work; option coverage can still be narrower than Stata’s. Partially supported commands have known gaps or use documented approximations, described in the notes. Planned commands are recognized by the parser but cannot be executed yet. Known unsupported commands and options are reported as errors rather than intentionally ignored. Consult this page before relying on a workflow. stats.camp independently implements a growing subset of Stata syntax; it does not implement the complete Stata language, all official features, or the community-contributed package ecosystem.
134 supported · 9 partially supported · 3 planned
Data loading & saving
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
use | Supported | Loads .dta files first, falling back to CSV, Excel, and Parquet. | |
save | Supported | ||
import | Supported | Covers import delimited (CSV) and import excel; also reads Parquet. | |
export | Supported | ||
append | Supported | ||
merge | Supported | ||
joinby | Supported | ||
clear | Supported | ||
compress | Supported | ||
preserve | Supported | ||
restore | Supported |
Data management
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
generate | gen, g | Supported | |
replace | Supported | ||
egen | Supported | ||
drop | Supported | ||
keep | Supported | ||
rename | Supported | ||
order | Supported | ||
sort | Supported | ||
gsort | Supported | ||
recode | Supported | ||
recast | Supported | ||
destring | Supported | ||
tostring | Supported | ||
encode | Supported | ||
decode | Supported | ||
split | Supported | ||
format | form, forma | Supported | |
label | Supported | Variable and value labels. | |
mvdecode | Supported | ||
mvencode | Supported | ||
expand | Supported | ||
contract | Supported | ||
collapse | Supported | ||
reshape | Supported | Wide-to-long and long-to-wide. | |
fillin | Supported | ||
duplicates | Supported | ||
isid | Supported | ||
xtile | Supported | ||
assert | Supported | ||
confirm | conf | Supported |
Exploring & describing
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
describe | desc | Supported | |
codebook | Supported | ||
inspect | Supported | ||
ds | Supported | ||
list | l | Supported | |
levelsof | Supported | ||
unique | Supported | ||
count | Supported | ||
summarize | sum | Supported | Notable options: detail. |
mean | Supported | ||
tabulate | tab | Supported | One- and two-way tables. |
tabstat | Supported | Notable options: statistics(), by(), format(). | |
correlate | corr | Supported | |
pwcorr | Supported | ||
spearman | Supported | ||
ci | Supported | ||
cii | Supported |
Hypothesis tests
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
ttest | Supported | Notable options: by(), unpaired, unequal, welch. | |
ttesti | Supported | ||
prtest | Supported | ||
prtesti | Supported | ||
sdtest | Supported | ||
sdtesti | Supported | ||
ztesti | Supported | ||
bitesti | Supported | ||
mcci | Supported | ||
signrank | Supported | ||
signtest | Supported | ||
ranksum | Supported | ||
kwallis | Supported | ||
median | Supported | ||
ksmirnov | Supported | ||
sktest | Supported | ||
swilk | Supported | ||
sfrancia | Supported | ||
robvar | Supported |
Estimation
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
regress | reg | Supported | Notable options: robust, vce(). Includes factor variables (i.varname). |
areg | Supported | ||
anova | Supported | ||
boxcox | Supported | ||
vwls | Supported | ||
logit | Supported | Notable options: robust, vce(), iterate(), tolerance(). | |
logistic | Supported | ||
probit | Supported | ||
ologit | Supported | ||
oprobit | Supported | ||
mlogit | Supported | ||
poisson | Supported | ||
nbreg | Supported | ||
zip | Supported | ||
zinb | Supported | ||
tobit | Supported | ||
intreg | Supported | ||
glm | Supported | ||
binreg | Supported | ||
fracreg | Supported | ||
qreg | Supported | ||
ivregress | ivreg | Supported | |
ivreg2 | Supported | ||
sureg | Supported | ||
heckman | Partially supported | Two-step estimator (approximation); full maximum likelihood is not implemented. | |
ivprobit | Partially supported | Newey two-step / control-function approximation. | |
ivtobit | Partially supported | Control-function approximation. | |
xtlogit | Partially supported | Fixed-effects approximation. |
Postestimation
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
predict | pred | Supported | |
margins | Partially supported | Average marginal effects; option coverage is narrower than Stata's margins. | |
test | Supported | ||
lincom | Supported | ||
nlcom | Supported | ||
estimates | est | Supported | |
eststo | Supported | ||
esttab | Supported | From the community estout package. | |
estout | Supported | From the community estout package. | |
coefplot | Supported | From the community coefplot package. |
Graphics
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
histogram | hist | Supported | |
scatter | Supported | ||
line | Supported | ||
kdensity | Supported | ||
binscatter | Supported | From the community binscatter package. | |
twoway | Partially supported | Common layer types; not every Stata layer and option combination. | |
graph | Partially supported | Subset of graph types; no graph-memory management (graph save/replay). |
Time series & panels
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
tsset | Supported | ||
xtset | Supported | ||
tsfill | Supported | ||
forecast | Planned | ||
irf | Planned | ||
rolling | Planned |
Programming & session
| Command | Abbreviations | Status | Notes |
|---|---|---|---|
display | di | Supported | |
local | Supported | ||
global | Supported | ||
while | Supported | ||
do | Supported | Runs do-files stored in the project. | |
run | ru | Supported | |
include | Supported | ||
collect | Partially supported | Prefix supported for a fixed set of r-class test commands. | |
help | Supported | ||
set | Partially supported | Subset of system parameters. | |
sleep | Supported | ||
log | Supported | ||
cmdlog | Supported | ||
cd | chdir | Supported | |
pwd | Supported | ||
ls | dir | Supported | |
mkdir | Supported | ||
putexcel | Supported |