Statistical analytical programming for social media analysis .
-
Upload
felicita-florence -
Category
Recruiting & HR
-
view
203 -
download
0
Transcript of Statistical analytical programming for social media analysis .
Statistical Analytical Programming
Social media Recruitment Analysis using SAS
Felicita.C13MBA1021
SAS programming Module
• Importing Data from the file• Merging the Files for Analysis• Frequency metrics• Means , Factor Analysis• Anova• Correlation• Regression• Logistic Regression• Chi square• Graphs• Plots• Piecharts• Block Charts
Social Media Recruitment Analysis
• Proc import datafile="D:\sas\sasmain.xls"• out=work.social1;• run;
• proc import datafile="D:\sas\exp.xls"• out=work.social2;• run;
• Proc sql;• create table work.media as• select *• from work.social1, work.social2• where social1.exp=social2.exp;• order by social1.sno;• quit;
• ods pdf file= 'D:\sas\assign.pdf';• startpage = 1;• ods pdf text = "SAS ASSIGNMENT-13MBA1021";• ods html file= 'D:\sas\assign.html';
Frequency analysis
proc freq data = work.media; tables use;run;
proc freq data= work.media;tables emp;run;
TITLE ' Vertical Bar Chart ';PROC GCHART DATA=media;
VBAR emp;
RUN;
proc freq data=work.media;tables imp;run;
PROC GCHART DATA=media;VBAR imp/LEVELS=7;
RUN;
exp
exp
Frequen
cy Percent
Cumulat
ive
Frequen
cy
Cumulat
ive
Percent
1 6 23.08 6 23.08
2 11 42.31 17 65.38
3 5 19.23 22 84.62
4 4 15.38 26 100.00
Graph coding for frequency analysis
Vertical and horizontal graphs charts with discrete options
• TITLE 'Bar Chart with Discrete Option';• PROC GCHART DATA=media;• VBAR roi/ DISCRETE;• RUN;
• TITLE 'Horizontal Bar Chart with Discrete';• PROC GCHART DATA=media;• HBAR reg/ DISCRETE;• RUN;
Pie chart coding
TITLE 'Pie Chart with Discrete';
PROC GCHART DATA=media;
PIE roi/ DISCRETE VALUE=INSIDE
PERCENT=INSIDE SLICE=OUTSIDE;
RUN;
Frequency analysis for brand recognition and competitive
advantage
Variable Label N Mean Std Dev Minimum
Maximu
m
ROI
brandreco
gnition
competitiv
eadvanta
ge
ROI
brandreco
gnition
competitiv
eadvanta
ge
26
26
26
3.423076
9
2.923076
9
3.269230
8
1.238485
4
1.354195
8
1.343359
7
1.000000
0
1.000000
0
1.000000
0
5.000000
0
5.000000
0
5.000000
0
The MEANS Procedure
The SAS System
Means and chisq analysis
proc means data =work.media; var emp totemp;run;proc freq data =work.media;tables exp * roi/chisq;run;
proc freq data =work.media;tables reg * roi/chisq;run;
Correlation , regression and anova
proc corr data =work.media;var exp roi reg compadv;run;
proc reg data =work.media;model roi reg compadv = exp;run;
proc anova data =work.media;class exp;model imp emp totemp = exp;run;ods html close;run;ods pdf close;quit;
Pearson Correlation Coefficients, N = 26
Prob > |r| under H0: Rho=0
ROI
brandrec
ognition
competiti
veadvant
age
ROI
ROI
1.00000 -0.00367
0.9858
0.00092
0.9964
brandrec
ognition
brandrec
ognition
-0.00367
0.9858
1.00000 -0.05412
0.7929
competiti
veadvant
age
competiti
veadvant
age
0.00092
0.9964
-0.05412
0.7929
1.00000
The CORR Procedure3 Variables:ROI brandrecognition
competitiveadvantage
Simple Statistics
Variable N Mean Std Dev Sum
Minimu
m
Maximu
m Label
ROI 26 3.42308 1.2384989.0000
01.00000 5.00000 ROI
brandre
cognitio
n
26 2.92308 1.3542076.0000
01.00000 5.00000
brandre
cognitio
n
competi
tiveadv
antage
26 3.26923 1.3433685.0000
01.00000 5.00000
competit
iveadva
ntage
Scatterplot for two different symbols
• TITLE 'Scatterplot - Two Variables';• PROC GPLOT DATA=media;• PLOT imp*emp ;• RUN;
• SYMBOL1 V=circle C=black I=none;• SYMBOL2 V=star C=red I=none;
• TITLE 'Scatterplot - Different Symbols';• PROC GPLOT DATA=media;• PLOT exp*emp=roi;• RUN; • QUIT;
• SYMBOL1 V=circle C=blue I=r;
TITLE 'Scatterplot - With Regression Line ';PROC GPLOT DATA=media;
PLOT exp*roi ;RUN;QUIT;
THANK YOU