赞
踩
use
:用于加载数据文件。use "your_datafile.dta"
summarize
:生成数据的摘要统计信息。summarize variable_name
regress dependent_variable independent_variable
ttest variable, by(category_variable)
anova dependent_variable independent_variable
ivregress 2sls dependent_variable (endogenous_variable = instrumental_variable) control_variables
xtsum variable_name
- tsset time_variable
- arima dependent_variable, arima_options
scatter dependent_variable independent_variable
histogram variable_name
sort variable_name
merge 1:1 unique_id using merge_file
gen new_variable = expression
gen total_income = income1 + income2
pairs variable1 variable2 variable3
graph box variable_name
keep if condition
keep if age >= 18 & age <= 65
esttab, stats(r2 rmse)
esttab, replace
regress dependent_variable independent_variable, robust
xtreg dependent_variable independent_variable, fe vce(robust)
- predict residuals, residuals
- scatter residuals independent_variable
- predict residuals, residuals
- graph hcsdensity residuals, normal
- tsset time_variable
- tsdecompose variable_name, seasonal
predict variable_name_forecast, forecast
summarize variable_name
correlate variable1 variable2
outreg2 using output_file, replace
table variable1 variable2, c(mean variable1) c(mean variable2)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。