ilovespss.blogspot.com
I love spss: January 2007
http://ilovespss.blogspot.com/2007_01_01_archive.html
SPSS, code, programming, macros, batch, executes, data, database. Monday, 15 January 2007. Cases to Variables and Variables to Cases. Command combines the related cases and produces the new variables. GET FILE='c: sample.sav'. SORT CASES BY ID number. ID = ID number. INDEX = ID person. SEPARATOR = " ". Income 1 "30K ". Income 2 "40K ". Income 3 "50K ". Command creates the exact opposite. A simple excel file contains two columns of information: income for males and income for females. There is no ...The M...
ilovespss.blogspot.com
I love spss: Cases to Variables and Variables to Cases
http://ilovespss.blogspot.com/2007/01/cases-to-variables-and-variables-to.html
SPSS, code, programming, macros, batch, executes, data, database. Monday, 15 January 2007. Cases to Variables and Variables to Cases. Command combines the related cases and produces the new variables. GET FILE='c: sample.sav'. SORT CASES BY ID number. ID = ID number. INDEX = ID person. SEPARATOR = " ". Income 1 "30K ". Income 2 "40K ". Income 3 "50K ". Command creates the exact opposite. A simple excel file contains two columns of information: income for males and income for females. There is no ...The M...
ilovespss.blogspot.com
I love spss: Transposing cases and variables
http://ilovespss.blogspot.com/2007/01/transposing-cases-and-variables.html
SPSS, code, programming, macros, batch, executes, data, database. Friday, 12 January 2007. Transposing cases and variables. Two most common commands are generally used for data transposing. FLIP. Command creates a new data file in which the rows adn columns in the original data are transposed so that cases (rows) become variables (columns) or vice versa. CASETOVAR. Command is in this manner more complex method where one can namely restructure data not only by flipping rows and columns. ID 12 32 33. The i...
ilovespss.blogspot.com
I love spss: May 2007
http://ilovespss.blogspot.com/2007_05_01_archive.html
SPSS, code, programming, macros, batch, executes, data, database. Thursday, 10 May 2007. SPSS provides the capability to create macros that contain text and. SPSS command syntax. Macros can perform the same command repeatedly, combine several procedures, or calculate user-defined statistics. Any functions you can perform using. SPSS syntax can be incorporated into a macro. When a macro is called, it is expanded so that any text including commands will be used in its place. Statistics = mean median min max.
ilovespss.blogspot.com
I love spss: Simple Macro
http://ilovespss.blogspot.com/2007/05/simple-macro.html
SPSS, code, programming, macros, batch, executes, data, database. Thursday, 10 May 2007. SPSS provides the capability to create macros that contain text and. SPSS command syntax. Macros can perform the same command repeatedly, combine several procedures, or calculate user-defined statistics. Any functions you can perform using. SPSS syntax can be incorporated into a macro. When a macro is called, it is expanded so that any text including commands will be used in its place. Statistics = mean median min max.
ilovespss.blogspot.com
I love spss: SEED to produce random samples of values
http://ilovespss.blogspot.com/2007/03/seed-to-produce-random-samples-of.html
SPSS, code, programming, macros, batch, executes, data, database. Friday, 9 March 2007. SEED to produce random samples of values. When you want to produce a random set of numbers - e.g.: randomly assigning cases to experimental treatments of group - one should set random number seed value if you want to get the same result. GET FILE = 'c: file.sav'. SET SEED = 123456789. GET FILE = 'c: file.sav'. SET SEED = 123456789. Do you have any advice on writing syntax in order to generate 2500 cases, with values r...
ilovespss.blogspot.com
I love spss: October 2007
http://ilovespss.blogspot.com/2007_10_01_archive.html
SPSS, code, programming, macros, batch, executes, data, database. Sunday, 21 October 2007. Migrating data from SPSS to SQL Server 2005. SQL Server 2005 has among Native SQL Server also OLEDB connection which enables you to import data to you favorite SPSS version. Using SPSS Syntax you can with almost no haste import data - using T-Sql Query to SPSS. Connect='Driver={SQLServer};Server=My server name;Uid=My User name;Pwd=My password;database=My database'. Table1.date = date2. T2id = t3 . T4my number = 1.
ilovespss.blogspot.com
I love spss: Finding invalid values
http://ilovespss.blogspot.com/2007/01/finding-invalid-values.html
SPSS, code, programming, macros, batch, executes, data, database. Tuesday, 9 January 2007. Data might contain errors, which can be cought by simple cleaning routines. Invalid data values can include anything from simple out-of-range values to complex combinations of values that should not occur. This sample contains a variable quantity that represents only valid values (e.g. integer values). Command syntax exlude invalid data from analysis. DATA LIST FREE /quantity. DATA LIST FREE /quantity. And also try...
ilovespss.blogspot.com
I love spss: March 2007
http://ilovespss.blogspot.com/2007_03_01_archive.html
SPSS, code, programming, macros, batch, executes, data, database. Friday, 9 March 2007. SEED to produce random samples of values. When you want to produce a random set of numbers - e.g.: randomly assigning cases to experimental treatments of group - one should set random number seed value if you want to get the same result. GET FILE = 'c: file.sav'. SET SEED = 123456789. GET FILE = 'c: file.sav'. SET SEED = 123456789. Subscribe to: Posts (Atom). SEED to produce random samples of values.