{"id":143,"date":"2017-04-08T00:07:40","date_gmt":"2017-04-08T00:07:40","guid":{"rendered":"http:\/\/sites.warnercnr.colostate.edu\/jerryv\/?page_id=143"},"modified":"2017-09-21T17:59:42","modified_gmt":"2017-09-21T17:59:42","slug":"calculating-pci2-spss","status":"publish","type":"page","link":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/calculating-pci2-spss\/","title":{"rendered":"Calculating PCI2 in SPSS"},"content":{"rendered":"<div>\n<h3>General Overview<\/h3>\n<p class=\"par-reg\">All files should be stored in the directory C:\\PCI<br \/>\n<span class=\"left30\">If this directory does not exist, you will need to create it.<\/span><br \/>\nFile names should not contain any spaces.<\/p>\n<\/div>\n<div>\n<h3>To Calculate PCI<sub>2<\/sub> in SPSS:<\/h3>\n<p class=\"par-reg\">Download and unzip the SPSS PCI<sub>2<\/sub> macro: <a href=\"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-content\/uploads\/sites\/76\/2017\/04\/PCI2_SPSS_Macro.zip\">SPSS_macro <\/a><br \/>\nCompile the macro that generates the PCI<sub>2<\/sub><br \/>\n<span class=\"left30\">Highlight all code between<\/span><br \/>\n<span class=\"left90\">&#8220;DEFINE&#8221; (line 30)<\/span><br \/>\n<span class=\"left60\">and &#8220;!ENDDEFINE&#8221; (line 284)<\/span><br \/>\n<span class=\"left60\">Click the &#8220;Run&#8221; button<\/span><\/p>\n<p>The following code generates the PCI<sub>2<\/sub><\/p>\n<table class=\"table-reg-1\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<thead>\n<tr>\n<td class=\"cell1\">SPSS command<\/td>\n<td class=\"cell2\">Comment<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td class=\"cell1\" valign=\"top\">PCI<sub>2<\/sub> infile=|&#8217;C:\\PCI\\Example.sav&#8217;|<\/td>\n<td class=\"cell2\">Original input filename<br \/>\nReplace &#8220;Example&#8221; with the name of your file<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\" valign=\"top\">outfile=|&#8217;C:\\PCI\\Example.CSV&#8217;|<\/td>\n<td class=\"cell2\">Output filename<br \/>\nReplace &#8220;Example&#8221; with the name of your file<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\" valign=\"top\">PCIOUT=|&#8217;C:\\PCI\\Sim_Data.sav&#8217;|<\/td>\n<td class=\"cell2\">Output filename Do not change the name of this file<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\">WORKDIR=|C:\\PCI\\|<\/td>\n<td class=\"cell2\">Working directory (must be C:\\PCI)<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\" valign=\"top\">SubSample1=Sex<br \/>\nSubSample2=???<br \/>\nSubSample3=???<br \/>\nSubsample4=???<\/td>\n<td class=\"cell2\">Subsample(s) calculate PCI for each group<br \/>\n(e.g., males and females in this example)<br \/>\nUp to 4 Subsample variables can be specified.<br \/>\nIf the analysis does not have any Subsamples these lines can be eliminated<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\" valign=\"top\">Scale_width=7<\/td>\n<td class=\"cell2\">Scale width (e.g., 2, 3, 4, 5, 6, 7, 8, 9)<br \/>\nThis example is based on a 7-point scale<br \/>\nReplace the 7 with the width of your scale<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\">var={VARIABLE NAME}<\/td>\n<td class=\"cell2\">Variable to be used in PCI calculation<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\" valign=\"top\">Distance_function=D<sub>1<\/sub><\/td>\n<td class=\"cell2\">Distance Function:<br \/>\nD<sub>1<\/sub> (or D<sub>2<\/sub>) for bipolar scales<br \/>\nD<sub>1<\/sub> currently recommended for bipolar<br \/>\nD<sub>3<\/sub> for unipolar scales<\/td>\n<\/tr>\n<tr>\n<td class=\"cell1\" valign=\"top\">Power_of_distance=|1.5<\/td>\n<td class=\"cell2\">Power:<br \/>\nP<sub>1<\/sub> = 1 = Unsquared difference scores<br \/>\nP<sub>2<\/sub> = 2 = Squared difference scores<br \/>\nPower can be any value &gt; 0 and &lt; 5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<p class=\"par-reg\">The following files are examples of SPSS data, macro syntax, and output<\/p>\n<table class=\"table-reg-2\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"cell3\">File type<\/td>\n<td class=\"cell4\">File name<\/td>\n<\/tr>\n<tr>\n<td class=\"cell3\">Data<\/td>\n<td class=\"cell4\">Galapagos.sav<\/td>\n<\/tr>\n<tr>\n<td class=\"cell3\">Syntax<\/td>\n<td class=\"cell4\">Galapagos_macro.sps<\/td>\n<\/tr>\n<tr>\n<td class=\"cell3\">Output<\/td>\n<td class=\"cell4\">Galapagos_Frequencies_Crosstabs_output.spv<\/td>\n<\/tr>\n<tr>\n<td class=\"cell3\">Output<\/td>\n<td class=\"cell4\">Galapagos_PCI_output.spv<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"par-reg\">The <a href=\"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-content\/uploads\/sites\/76\/2017\/09\/galapagos_spss.zip\">Galapagos.zip file <\/a>contains the above four files.<br \/>\nDown load the ZIP file and unzip the files to a directory\/folder where you can run the SPSS application.<\/p>\n<p>In the Galapagos example:<\/p>\n<p><span class=\"left30\">The SubSample1 variable is &#8220;Island&#8221; (the respondent&#8217;s island of residence).<\/span><br \/>\n<span class=\"left60\">The Island variable has 3 responses:<\/span><br \/>\n<span class=\"left90\">1 = San Cristobal<\/span><br \/>\n<span class=\"left90\">2 = Santa Cruz<\/span><br \/>\n<span class=\"left90\">3 = Isabela<\/span><\/p>\n<p><span class=\"left30\">The macro calculates the PCI for the &#8220;normfish&#8221; variable (Norms for illegal fishing). <\/span><br \/>\n<span class=\"left60\">Because a SubSample variable was specified, 3 actual and 3 simulated PCI values are generated; <\/span><br \/>\n<span class=\"left60\">one for each of the islands.<\/span><\/p>\n<p><span class=\"left30\">The scale for &#8220;normfish&#8221; is 4-point unipolar (i.e., scale_width = 4):<\/span><br \/>\n<span class=\"left60\">0 = Do nothing if the fisherman violates the rules for illegal fishing<\/span><br \/>\n<span class=\"left60\">1 = Fine the fisherman<\/span><br \/>\n<span class=\"left60\">2 = Take away the fisherman&#8217;s permit for 15 days<\/span><br \/>\n<span class=\"left60\">3 = Take away the fisherman&#8217;s permit for the rest of the year<\/span><br \/>\n<span class=\"left30\"><b>Note: The minimum value for a unipolar scale should always be 0.<\/b><\/span><\/p>\n<p><span class=\"left30\">Because the scale is unipolar, the appropriate distance function is D<sub>3<\/sub>.<\/span><\/p>\n<p><span class=\"left30\">The power of distance function is currently set to 1 (i.e., Power_of_distance = 1).<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>General Overview All files should be stored in the directory C:\\PCI If this directory does not exist, you will need to create it. File names should not contain any spaces. To Calculate PCI2 in SPSS: Download and unzip the SPSS&hellip; <\/p>\n","protected":false},"author":117,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-143","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/pages\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/users\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":3,"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/pages\/143\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/pages\/143\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/sites.warnercnr.colostate.edu\/jerryv\/wp-json\/wp\/v2\/media?parent=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}