Note that there are some explanatory texts on larger screens.

plurals
  1. POSPSS creating a loop for a multiple regression over several variables
    primarykey
    data
    text
    <p>For my master thesis I have to use <strong>SPSS</strong> to analyse my data. Actually I thought that I don't have to deal with very difficult statistical issues, which is still true regarding the concepts of my analysis. BUT the problem is now that in order to create my dependent variable I need to use the syntax editor/ programming in general and I have no experience in this area at all. I hope you can help me in the process of creating my syntax.</p> <p>I have in total approximately 900 companies with 6 year observations. For all of these companies I need the predicted values of the following company-specific regression:</p> <pre><code>Y= ß1*X1+ß2*X2+ß3*X3 + error </code></pre> <p>(I know, the ß won t very likely be significant, but this is nothing to worry about in my thesis, it will be mentioned in the limitations though). So far my data are ordered in the following way</p> <pre><code>COMPANY YEAR X1 X2 X3 1 2002 2 2002 1 2003 2 2003 </code></pre> <p>But I could easily change the order, e.g. in</p> <pre><code>1 1 2 2 etc. </code></pre> <p>Ok let's say I have rearranged the data: what I need now is that SPSS computes for each company the specific ß and returns the output in one column (the predicted values with those ß multiplied by the specific X in each row). So I guess what I need is a loop that does a multiple linear regression for 6 rows for each of the 939 companies, am I right?</p> <p>As I said I have no experience at all, so every hint is valuable for me.</p> <p>Thank you in advance, </p> <p>Janina.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload