⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crime.txt

📁 计量工具箱
💻 TXT
字号:

% 47 states crime data from: I. Ehrlich (1973)
% Participation in illegitimate activities: a theoretical
% and empirical investigation (journal of political economy)

% rows = states
% columns = 
% 1) crime, 1960 
% 2) percent of males aged 14-24
% 3) south, dummy variable
% 4) mean years of schooling
% 5) police expenditures in 1960
% 6) police expenditures in 1959
% 7) labor force participation rate
% 8) sex, number of males per 1000 females
% 9) state population
% 10) nonwhites per 1000 population
% 11) unemployment rate of urban males 14-24 
% 12) unemployment rate of urban males 35-39
% 13) wealth
% 14) income inequality
% 15) probability of imprisionment
% 16) average time served in state prisons


load crime.dat;
y = crime(:,1);
[n k] = size(crime);
x = [ones(n,1) crime(:,2:end)];

vnames = strvcat('crime','constant','male14-24','south','school','police60','police59', ...
'labor','sex','pop','nonwhite','unemp young','unemp old','wealth', ...
'inequality','imprisioned','timeserved');

result = ols(y,x);
prt(result,vnames);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -