Return to Video

Computing a new variable in SPSS

  • Not Synced
    So here we are in SPSS
  • Not Synced
    I have created kind of a junk data set
  • Not Synced
    just to help illustrate how we can compute
  • Not Synced
    variables or compute new variables
  • Not Synced
    using the variables form existing ones.
  • Not Synced
    This is a pretty straight forward process,
  • Not Synced
    it looks a little bit different
  • Not Synced
    than things that we've done before
  • Not Synced
    or other ways that we are going
  • Not Synced
    to be using an SPSS in this course.
  • Not Synced
    So it might look a little bit different,
  • Not Synced
    but it is pretty straight forward
  • Not Synced
    and pretty easy
  • Not Synced
    once you know how to do this.
  • Not Synced
    So the first that we'll do
  • Not Synced
    is to go to Transform and then
  • Not Synced
    the first option we have there
  • Not Synced
    is Compute Variable. So click on that.
  • Not Synced
    We get this new window that pops up
  • Not Synced
    The first that we really want to look at
  • Not Synced
    is in the top left and that's this target
  • Not Synced
    variable window.
  • Not Synced
    Basically what the computer
  • Not Synced
    is asking you
  • Not Synced
    is to create a name for the new variable
  • Not Synced
    that you are going to be computing.
  • Not Synced
    This name needs to be unique,
  • Not Synced
    it's one that can't have spaces in it
  • Not Synced
    and it should avoid special characters.
  • Not Synced
    In this case, what I like
  • Not Synced
    to do is include some sort of piece
  • Not Synced
    of information in the naming convention
  • Not Synced
    I use that helps me know what this is
  • Not Synced
    just by looking at it.
  • Not Synced
    So what we're going to be doing
  • Not Synced
    is we are going to be summing items
  • Not Synced
    one, two, three, four, five, six together,
  • Not Synced
    adding those together.
  • Not Synced
    So an easy way to do that,
  • Not Synced
    is just to put sum of items.
  • Not Synced
    That way when I look at this new variable
  • Not Synced
    once it's generated
  • Not Synced
    I know that that's the variable
  • Not Synced
    that I really want to be working with.
  • Not Synced
    Or running my tests on because that
  • Not Synced
    that contains the information
  • Not Synced
    from the other ones. You can
  • Not Synced
    click on type and label. The label is the
  • Not Synced
    more drawn out explanation,
  • Not Synced
    that's the one you can include character
  • Not Synced
    additional characters or spaces
  • Not Synced
    and special characters. In that case,
  • Not Synced
    I'm going to put this is the sum of items
  • Not Synced
    one through six.
  • Not Synced
    And that way, I know that that is going to
  • Not Synced
    give me more drawn out explanation of what
  • Not Synced
    this variable includes. We know this is
  • Not Synced
    going to be uneric - numeric - I'm sorry,
  • Not Synced
    so click Continue. The next thing
  • Not Synced
    we are going to look at is this
  • Not Synced
    numeric expression box - we're going
  • Not Synced
    to come back to this in just a minute.
  • Not Synced
    But this is where you're going to be doing
  • Not Synced
    most of the work when you're computing
  • Not Synced
    variable. What you want to go to next
  • Not Synced
    is this function group area.
  • Not Synced
    So I'm going to click on All
  • Not Synced
    and you notice right below it
  • Not Synced
    we've got these functions and special variables
  • Not Synced
    and this pop up when I clicked on all.
  • Not Synced
    This has a whole bunch
  • Not Synced
    of pre-existing functions, so you
  • Not Synced
    don't need to reinvent the wheel.
  • Not Synced
    You can basically use these
  • Not Synced
    pre-existing functions to help you
  • Not Synced
    compute this new variable.
  • Not Synced
    Um, I'm going to go down
  • Not Synced
    to Sum and these are in alphabetical order
  • Not Synced
    so it's pretty easy to find.
  • Not Synced
    Here we have Sum and when I click on Sum,
  • Not Synced
    you'll notice that this box to the left
  • Not Synced
    populated with some text.
  • Not Synced
    This box is actually pretty useful.
  • Not Synced
    So the first thing it shows you
  • Not Synced
    is an example of what this expression
  • Not Synced
    is going to be. I know expression
  • Not Synced
    sounds likes a really fancy term,
  • Not Synced
    if you've ever used a formula in Excel
  • Not Synced
    it's basically that. It's telling the computer
  • Not Synced
    what it needs to do.
  • Not Synced
    In this case, just like Excel,
  • Not Synced
    we've got the word sum,
  • Not Synced
    which tells the computer
  • Not Synced
    it's going to be summing different
  • Not Synced
    values together. And then in parenthesis,
  • Not Synced
    immediately after that, we have different
  • Not Synced
    variables that are separated by a comma
  • Not Synced
    and that's what tells the computer
  • Not Synced
    to add x, y, and z things together
  • Not Synced
    to create a new variable
  • Not Synced
    or compute a new variable.
  • Not Synced
    This also provides additional
  • Not Synced
    extra content here, but we don't need to
  • Not Synced
    worry about that. I've found this
  • Not Synced
    is useful if you are stuck or something
  • Not Synced
    isn't working right.
  • Not Synced
    So we've got some selected,
  • Not Synced
    we're going to be summing the items
  • Not Synced
    of one, two, three, four, five, and six together
Title:
Computing a new variable in SPSS
Description:

more » « less
Video Language:
English
Duration:
08:48

English subtitles

Revisions Compare revisions