
Stata是一个广泛用于统计分析和数据管理的软件,以下是一些Stata的基础命令:
输入数据:use + 数据文件路径
显示数据:browse 或 list 或 describe
选择数据:keep 或 drop 或 select 或 exclude
建立变量和赋值:generate 或 replace
汇总数据:summarize 或 tabulate
画图:twoway plot 或 histogram
线性回归分析:regress
非线性回归分析:nl 或 nlsur
离散模型(例如logit)分析:logit 或 probit
时间序列模型分析:arima 或 xtgls
数据合并:merge
数据排序:sort
导出数据:outsheet 或 outreg
生成OLS回归后的一列拟合值:predict price_fit, xb
手动计算拟合值:gen y_fits = _b[_cons] + _b[length]*length
显示残差:predic















![[尚硅谷React笔记]——第5章 React 路由](https://img-blog.csdnimg.cn/dc3b54d6f48d4ed1aa31eb66454cd7a5.png)


