<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SPSSlog.com &#187; Questions and answers</title>
	<atom:link href="http://www.spsslog.com/category/questions_and_answers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spsslog.com</link>
	<description>From users, for users</description>
	<lastBuildDate>Tue, 28 Jul 2009 18:29:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Combine two variables into one</title>
		<link>http://www.spsslog.com/2007/04/10/combine-two-variables-into-one/</link>
		<comments>http://www.spsslog.com/2007/04/10/combine-two-variables-into-one/#comments</comments>
		<pubDate>Tue, 10 Apr 2007 18:35:22 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[2. Enhancing your data]]></category>
		<category><![CDATA[5. Coding SPSS Syntax]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2007/04/10/combine-two-variables-into-one/</guid>
		<description><![CDATA[One of the many questions we got the last few days was from Dana. Dana asked us a question about combining two variables into one: &#8220;Hello, I need to essentially combine two variables that have been standardized into one new variable.Â  Data that is present in one variable is missing on the other and vice [...]]]></description>
			<content:encoded><![CDATA[<p>One of the many questions we got the last few days was from Dana. Dana asked us a question about combining two variables into one:</p>
<p><em>&#8220;Hello, I need to essentially combine two variables that have been<br />
standardized into one new variable.Â  Data that is present in one variable<br />
is missing on the other and vice versa.Â  I tried making a new variable and<br />
then recoding missing data so it would pull in the values from the other<br />
variable.Â  Can you only recode missing values into numbers, or can I pull<br />
an entirely different variable into it?Â  Basically, how do I combine two<br />
variables into one?Â  Is there an easier way? Thanks!&#8221;</em></p>
<p>Well, there certainly is an easier way to combine two variables. Let&#8217;s assume you have the variables VAR00001 and VAR00002 which you want to combine into one new variable. We also assume that they do not have overlapping records, with which I mean that there is no record which has a value in both variables. To combine the two, you can use the following SPSS Syntax:</p>
<p><strong>COMPUTE NEW_VAR = VAR00001.<br />
IF (VAR00002 = 4) NEW_VAR = 4 .<br />
IF (VAR00002 = 5) NEW_VAR = 5 .<br />
IF (VAR00002 = 6) NEW_VAR = 6 .<br />
EXECUTE .</strong></p>
<p>The first part (COMPUTE NEW_VAR = VAR00001.) creates the new variable and copies all values fromÂ  VAR00001 into the new variable. The second part copies the values from VAR00002 to the new variable, for the values 4, 5 and 6. Very probably, your second variable contains different values, so adjust the Syntax to your needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2007/04/10/combine-two-variables-into-one/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Does SPSS remember the formula used in Compute?</title>
		<link>http://www.spsslog.com/2007/01/19/does-spss-remember-the-formula-used-in-compute/</link>
		<comments>http://www.spsslog.com/2007/01/19/does-spss-remember-the-formula-used-in-compute/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 07:55:41 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[2. Enhancing your data]]></category>
		<category><![CDATA[3a. Analysing your data]]></category>
		<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2007/01/19/does-spss-remember-the-formula-used-in-compute/</guid>
		<description><![CDATA[This week Eamonn send us the following question about the Compute function: When using transfor/compute &#8211; say to create a construct from a set of Likert Scale items &#8211; does SPSS save the formula used to create the new variable, or is it lost once you compute? SPSS does not save the formula in your [...]]]></description>
			<content:encoded><![CDATA[<p>This week Eamonn send us the following question about the Compute function:</p>
<p><em>When using transfor/compute &#8211; say to create a construct from a set of Likert<br />
Scale items &#8211; does SPSS save the formula used to create the new variable, or<br />
is it lost once you compute?</em></p>
<p>SPSS does not save the formula in your data file. It does keep the formula in mind if you keep SPSS open. So if you want to use the same formula again, but than with different variables for example, you can open the Compute screen again, and there your old formula is. But if you close SPSS and open it again, the formula will be gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2007/01/19/does-spss-remember-the-formula-used-in-compute/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Happy holidays!</title>
		<link>http://www.spsslog.com/2006/12/22/happy-holidays/</link>
		<comments>http://www.spsslog.com/2006/12/22/happy-holidays/#comments</comments>
		<pubDate>Fri, 22 Dec 2006 14:10:09 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/12/22/happy-holidays/</guid>
		<description><![CDATA[From Lawrence, Will, Mark and Andris (SPSSlog.com) a Merry Christmas and happy 2007 for all of our visitors! Since the start of SPSSlog, we&#8217;ve answered over 200 questions on SPSS&#8230; we hope to help even more SPSS users in next year. Technorati: Posts that contain Happy Holidays per day for the last 30 days. If [...]]]></description>
			<content:encoded><![CDATA[<p>From Lawrence, Will, Mark and Andris (SPSSlog.com) a Merry Christmas and happy 2007 for all of our visitors! Since the start of SPSSlog, we&#8217;ve answered over 200 questions on SPSS&#8230; we hope to help even more SPSS users in next year.</p>
<p>Technorati: Posts that contain <a href="http://technorati.com/search/happy+holidays">Happy Holidays</a> per day for the last 30 days.<br />
<img style="border: 0px" alt="Technorati Chart" src="http://technorati.com/chartimg/%28happy%20holidays%29?totalHits=498858&#038;size=s&#038;days=30" /></p>
<p>If you need something to do during your time off, try out theÂ <a title="Swivel" href="http://www.swivel.com/">great online graph service Swivel</a>, or try making the coolest <a title="Square Pie-Chart Graphs" href="http://www.juiceanalytics.com/weblog/?p=283">SQUARE PIE-CHART graphs</a> with SPSS! Post all your creations in our comments&#8230;</p>
<p>Our new year&#8217;s intention: use SPSS more, everyday! <img src='http://www.spsslog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/12/22/happy-holidays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recode missing values with Syntax</title>
		<link>http://www.spsslog.com/2006/12/07/recode-missing-values-with-syntax/</link>
		<comments>http://www.spsslog.com/2006/12/07/recode-missing-values-with-syntax/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 18:58:56 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[5. Coding SPSS Syntax]]></category>
		<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/12/07/recode-missing-values-with-syntax/</guid>
		<description><![CDATA[Today, Aleksandar sent us the following question: &#8220;I&#8217;m having problems to recode system missing values to 0 with syntax editor. How can I do that?&#8221; In SPSS Syntax, missing values can be addressed via the keywords &#8220;sysmis&#8221; or &#8220;missing&#8221;. For this explanation we assume that in addition to the values 1 and 2, there are [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Aleksandar sent us the following question:</p>
<p>&#8220;I&#8217;m having problems to recode system missing values to 0 with syntax<br />
editor. How can I do that?&#8221;</p>
<p>In SPSS Syntax, missing values can be addressed via the keywords &#8220;sysmis&#8221; or &#8220;missing&#8221;. For this explanation we assume that in addition to the values 1 and 2, there are also values 3 and 4 which are defined as missing values. Please find some syntax below and an explanation of what they do. var2 stands for the variable name we are recoding.</p>
<p>RECODE var2 (missing = 3).</p>
<p>All missing values (i.e., values 3 and 4 and perhaps also system missing values) will have the value 3. 3 will still be defined as missing.</p>
<p>RECODE var2 (missing = 15).</p>
<p>All missing values (i.e., values 3 and 4 and perhaps also system missing values) will have the value 15. 15 will not be defined as missing.</p>
<p>If you have system missing values and want to recode only these to another value, you can use the keyword &#8220;sysmis&#8221; instead of &#8220;missing&#8221;.</p>
<p>RECODE var2 (sysmis = 6).</p>
<p>Again, if you have defined values 3 and 4 as missing, 6 will not be recognized as a (formerly) missing value. You may wish to either define 6 now as missing or to assign a value label that tells you the meaning of 6.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/12/07/recode-missing-values-with-syntax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coding Ordinal Data</title>
		<link>http://www.spsslog.com/2006/11/03/coding-ordinal-data-2/</link>
		<comments>http://www.spsslog.com/2006/11/03/coding-ordinal-data-2/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 11:02:51 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/11/03/coding-ordinal-data-2/</guid>
		<description><![CDATA[This week we got a question from Mark Mortensen regarding Coding Ordinal Data. â€œWhat is the best way to set up a variable and code ordinal data when it is generated by a question such as &#8220;Rank the following three items using 1 as the most use, 2 the next most use, and three, the [...]]]></description>
			<content:encoded><![CDATA[<p>This week we got a question from Mark Mortensen regarding <strong><em>Coding Ordinal Data</em></strong>.<br />
â€œWhat is the best way to set up a variable and code ordinal data when it is generated by a question such as &#8220;Rank the following three items using 1 as the most use, 2 the next most use, and three, the least use?&#8221;<br />
For this query we can consider the following example.Â In the following data there is three different 4 wheelers brands. The respondent gives the opinion aboutÂ usage on their brand like most often, second most often and least often. It is captured brand wise. Using this syntax easily we can find out which brand is most often, second most often and least often. This recoding we can do vise-versa based on data capturing.<br />
<strong>Â </strong></p>
<p><strong>Data:<br />
</strong><a href="http://www.lacarguy.com/los-angeles/audi.html">Audi</a>Â Â Â Â Â  BMWÂ Â Â  Benz<br />
&#8212;&#8212;- Â &#8212;&#8212;- &#8212;&#8212;&#8211;<br />
1Â Â Â Â Â Â Â Â Â  2Â Â Â Â Â Â Â Â Â  3<br />
2Â Â Â Â Â Â Â Â Â  3Â Â Â Â Â Â Â Â Â  1<br />
3Â Â Â Â Â Â Â Â Â  1Â Â Â Â Â Â Â Â Â  2</p>
<p>1- Most oftenÂ Â Â Â </p>
<p>2-Second most often</p>
<p>3-least often</p>
<p>*** The following syntax will recode the respondentâ€™s opinion into new variableÂ rank1, 2 and 3.<br />
IF (Audi =1) Rank1 = 1.<br />
IF (BMW =1) Rank1 = 2.<br />
IF (Benz =1) Rank1 = 3.<br />
Execute.<br />
IF (Audi =2) Rank2 = 1.<br />
IF (BMW =2) Rank2 = 2.<br />
IF (Benz =2) Rank2 = 3.<br />
Execute.<br />
IF (Audi =3) Rank3 = 1.<br />
IF (BMW =3) Rank3 = 2.<br />
IF (Benz =3) Rank3 = 3.<br />
Execute.<br />
Variable label<br />
Rank1 &#8216;Most Often&#8217;<br />
Rank2 &#8216;Second Most Often&#8217;<br />
Rank3 &#8216;Least Often&#8217;.<br />
Value label Rank1 Rank2 Rank3<br />
1 &#8220;Audi&#8221;<br />
2 &#8220;BMW&#8221;<br />
3 &#8220;Benz&#8221;.<br />
After using this syntax we will get the new variablesÂ like in this way,</p>
<p>Rank1 Â  Rank2Â Â  Rank3<br />
&#8212;&#8212;-Â Â &#8212;&#8212; Â  &#8212;&#8212;&#8211;<br />
AudiÂ Â Â Â Â  BMWÂ Â Â  Benz<br />
BenzÂ Â Â Â  AudiÂ Â Â Â Â BMW<br />
BMWÂ Â Â Â  BenzÂ Â Â Â Audi</p>
<p>Thanks,</p>
<p>Lawrence.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/11/03/coding-ordinal-data-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recoding in SPSS</title>
		<link>http://www.spsslog.com/2006/11/02/recoding-in-spss/</link>
		<comments>http://www.spsslog.com/2006/11/02/recoding-in-spss/#comments</comments>
		<pubDate>Thu, 02 Nov 2006 10:27:19 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/11/02/recoding-in-spss/</guid>
		<description><![CDATA[Hi SPSSlog users,Â  TheÂ following linkÂ is the simpleÂ example for recoding in SPSS and itâ€™s explaining the purpose also. After reading this content,Â I welcomeÂ more discussion on this. At the end all the SPSS Log users will get more information about recoding in SPSS with more examples. In SPSS we have two different method of recoding (Recode into [...]]]></description>
			<content:encoded><![CDATA[<p>Hi SPSSlog users,Â </p>
<p>TheÂ following linkÂ is the simpleÂ example for recoding in SPSS and itâ€™s explaining the purpose also. After reading this content,Â I welcomeÂ more discussion on this. At the end all the SPSS Log users will get more information about recoding in SPSS with more examples. In SPSS we have two different method of recoding (Recode into same variable and Recode into Different variable). We will discuss the features and utilization of these two functions from different applications.Â </p>
<p>Â </p>
<p><a href="http://www.cariboo.bc.ca/ae/geography/courses/270/softwareguides/recodingspss.pdf">www.cariboo.bc.ca/ae/geography/courses/270/softwareguides/<strong>recoding</strong><strong>spss</strong>.pdf</a></p>
<p>Thanks,</p>
<p>Lawrence</p>
<p>Â </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/11/02/recoding-in-spss/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create an overall variable / rating from a number of ratings / variables</title>
		<link>http://www.spsslog.com/2006/09/29/create-an-overall-variable-rating-from-a-number-of-ratings-variables/</link>
		<comments>http://www.spsslog.com/2006/09/29/create-an-overall-variable-rating-from-a-number-of-ratings-variables/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 11:13:11 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[2. Enhancing your data]]></category>
		<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/09/29/create-an-overall-variable-rating-from-a-number-of-ratings-variables/</guid>
		<description><![CDATA[This week Cameron send us the following question: &#8220;I am writing about the stereotypes that people hold in regard to public service employees. Participants are required to rate a private, state, federal and local employee on a number of ratings such as efficiency. It is a 7 point Likert scale. How do I obtain an [...]]]></description>
			<content:encoded><![CDATA[<p>This week Cameron send us the following question:</p>
<p>&#8220;I am writing about the stereotypes that people hold in regard to public service employees. Participants are required to rate a private, state, federal and local employee on a number of ratings such as efficiency. It is a 7 point Likert scale.</p>
<p>How do I obtain an overall rating score for each participant for each level of employee?&#8221;</p>
<p>Cameron, I assume you have already got your data into SPSS. I also assume you have put each score in a different variable and scored every variable with a figure from 1 to 7. To create an overall rating, you can use the Compute function. You can find this under Transform -> Compute.</p>
<p><a class="imagelink" title="Compute" href="http://www.spsslog.com/wp-content/uploads/2006/09/compute.png"><img id="image104" height="96" alt="Compute" src="http://www.spsslog.com/wp-content/uploads/2006/09/compute.png" /></a><br />(Click image for large view)</p>
<ul>
<li>In the field Target Variable, you fill in the name of a (new) variable which should contain the overall rating.</li>
<li>In the field Numeric Expression you create a formula by typing or clicking the right buttons, like the following:</li>
</ul>
<p><em>(var1+var2+var3+var4)/4</em></p>
<ul>
<li>In this formula the 4 stands for the number of variables.</li>
<li>When you are finished, press OK.</li>
</ul>
<p>In the newly created variable you can now find the overall score. If you have any questions about SPSS, please do not hesitate to contact us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/09/29/create-an-overall-variable-rating-from-a-number-of-ratings-variables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to export your charts in high resolution</title>
		<link>http://www.spsslog.com/2006/09/19/how-to-export-your-charts-in-high-resolution/</link>
		<comments>http://www.spsslog.com/2006/09/19/how-to-export-your-charts-in-high-resolution/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 05:21:43 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[4. Modifying SPSS output]]></category>
		<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/09/19/how-to-export-your-charts-in-high-resolution/</guid>
		<description><![CDATA[We got a question from Lucinda, who wants to publish her results, but has a problem with the resolution of the output. She asked us: &#8220;I have made some interactive line graphs that have been submitted to a scientific journal for publication. The journal editor says that the resolution of the graphs is not high [...]]]></description>
			<content:encoded><![CDATA[<p>We got a question from Lucinda, who wants to publish her results, but has a problem with the resolution of the output. She asked us:</p>
<p>&#8220;I have made some interactive line graphs that have been submitted to a scientific journal for publication.  The journal editor says that the resolution of the graphs is not high enough to print.  Do you know how I can increase the resolution of the graphs?&#8221;</p>
<p>You can export your graphs into different file formats:</p>
<p>1. Rightclick your chart (in the Output window)</p>
<p>2. Choose Eport, which gives you the following pop-up screen:</p>
<p><img alt="Export Output" id="image103" src="http://www.spsslog.com/wp-content/uploads/2006/09/export_output.gif" /></p>
<p>3. Set the file type to Postscript (EPS). This is the file format most graphical guys (DTP-ers) can handle this format without a problem. Set the other options according to your wishes, and press OK.</p>
<p>If you have any other questions, please don&#8217;t hesitate to contact us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/09/19/how-to-export-your-charts-in-high-resolution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Error: The attempt to save the data file has failed because the disk is full, an I/O error has occurred, the variable dictionary is invalid, or the task was interrupted.</title>
		<link>http://www.spsslog.com/2006/08/23/error-the-attempt-to-save-the-data-file-has-failed-because-the-disk-is-full-an-io-error-has-occurred-the-variable-dictionary-is-invalid-or-the-task-was-interrupted/</link>
		<comments>http://www.spsslog.com/2006/08/23/error-the-attempt-to-save-the-data-file-has-failed-because-the-disk-is-full-an-io-error-has-occurred-the-variable-dictionary-is-invalid-or-the-task-was-interrupted/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 12:44:29 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[Questions and answers]]></category>
		<category><![CDATA[SPSS Errors]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/08/23/error-the-attempt-to-save-the-data-file-has-failed-because-the-disk-is-full-an-io-error-has-occurred-the-variable-dictionary-is-invalid-or-the-task-was-interrupted/</guid>
		<description><![CDATA[We received a question from Ilan Shrira, who got an error while saving a file: I just bought a 120 gigabyte external hard drive, and whenever I try to save an SPSS file that&#8217;s more than 4 gigabyte onto it, it stops and says &#8220;Warning #5322, The attempt to save the data file has failed [...]]]></description>
			<content:encoded><![CDATA[<p>We received a question from Ilan Shrira, who got an error while saving a file:</p>
<p>I just bought a 120 gigabyte external hard drive, and whenever I try to save an SPSS file<br />
that&#8217;s more than 4 gigabyte onto it, it stops and says &#8220;Warning #5322, The attempt to save the data file has failed because the disk is full, an I/O error has occurred, the variable dictionary is invalid, or the task was interrupted&#8221;</p>
<p>I didn&#8217;t have any trouble saving 2 or 3 gigabyte files of the save type. Is is possible that there&#8217;s some other kind of glitch in my file.&#8221;</p>
<p>To our information there is no limitation in file size, variables or cases. This information is not checked with SPSS, since we do not have a support contract. If anyone else has and is willing to ask SPSS about this, we would be very thankfull. But, the cause isÂ probably an error in the data or variables.</p>
<p>TheÂ error has been discussed in the SPSSX-L mailinglist. In <a href="http://listserv.uga.edu/cgi-bin/wa?A2=ind0212&#038;L=spssx-l&#038;D=0&#038;P=24290" target="_blank">this discussion</a> <span id="MSGHDR-REPLY-TO-PRE">Raynald Levesque suggests the following cause to the problem:</span></p>
<p>&#8220;If you have string variables, check that the number of characters differs<br />
from the declared length of that variable.</p>
<p>eg if you have a variable declared as format A2 but that variable contains 3<br />
characters. In recent versions of SPSS, more integrity tests are performed<br />
when saving a file and this would cause an error.&#8221;</p>
<p>You can check your file by hand or use the automated method Raynald suggest in <a href="http://listserv.uga.edu/cgi-bin/wa?A2=ind0212&#038;L=spssx-l&#038;D=0&#038;P=27001" target="_blank">his second post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/08/23/error-the-attempt-to-save-the-data-file-has-failed-because-the-disk-is-full-an-io-error-has-occurred-the-variable-dictionary-is-invalid-or-the-task-was-interrupted/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Linear regression</title>
		<link>http://www.spsslog.com/2006/08/21/linear-regression/</link>
		<comments>http://www.spsslog.com/2006/08/21/linear-regression/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 06:33:43 +0000</pubDate>
		<dc:creator>andris</dc:creator>
				<category><![CDATA[3b. Heavy statistics with SPSS]]></category>
		<category><![CDATA[Questions and answers]]></category>

		<guid isPermaLink="false">http://www.spsslog.com/2006/08/21/linear-regression/</guid>
		<description><![CDATA[We get a lot of questions about regression analysis. We have dug into this and decided to write a post about it, so we can help everyone with this. You do a regression when you assume that a variable is influencing another one, like in the following example: We assume that cars that run on [...]]]></description>
			<content:encoded><![CDATA[<p>We get a lot of questions about regression analysis. We have dug into this and decided to write a post about it, so we can help everyone with this.</p>
<p>You do a regression when you assume that a variable is influencing another one, like in the following example: We assume that cars that run on Diesel have higher costs.</p>
<p>To test this assumption, we run a Linear Regression in SPSS. Take the following steps:</p>
<p>- Define your dependent and independent variable. In our example Fuel is the indepent variable and Costs is the dependent one.<br />
- Click <strong>Analyze<br />
</strong>- Go to <strong>Regression</strong> and click <strong>Linear<br />
</strong>- Click &#8220;Fuel&#8221; into the <strong>Independent variable field</strong>, and &#8220;Costs&#8221; into the <strong>Dependent variable field</strong>.</p>
<p><a class="imagelink" title="Linear Regression Output" href="http://www.spsslog.com/wp-content/uploads/2006/08/linear_regression_output.gif"><img id="image99" height="96" alt="Linear Regression Output" src="http://www.spsslog.com/wp-content/uploads/2006/08/linear_regression_output.thumbnail.gif" /></a></p>
<p>The output exists of:</p>
<p>1 Model Summary, in which you can find the relation between the variables.</p>
<p>R stands for the correlation and gives us the relation between the dependent and the independent variables. The correlation between Fuel and Costs is ,839.</p>
<p>R Square is the proportion of variance in the dependent variable (Costs) which can be predicted from the independent variable (Fuel). This value indicates that 70% of the variance in costs can be predicted from the variable fuel. The Adjusted R-square tries to give an even better calculation for the whole population.</p>
<p>2 ANOVA, which holds data about the significance of the regressionmodel.</p>
<p>The value under Sig. holds the significance value of the regression. In most cases this should be under 0.05. In our example this is 0.00, better it cannot get!</p>
<p>3 Coefficients, gives information about the first line of regression.</p>
<p>Conclusion would be that this regression analysis is significant and that 70% of the variance in costs can be predicted from the variable fuel.</p>
<p>Please find below the SPSS file we used to create this example. Just one note, the information in the SPSS file is not based on anything. Even more, it&#8217;s just random data. Please don&#8217;t sue us.</p>
<p><a id="p98" title="Linear Regression Example Cars" href="http://www.spsslog.com/wp-admin/linear_regression_example_cars.zip">Linear Regression Example Cars</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spsslog.com/2006/08/21/linear-regression/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
