SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  A sample to do multiple linear regression in python using spss

    Posted Sun March 26, 2023 12:51 PM

    Kind with a sample code on how to do say 

    1) stepwise regression

    2) Best subsets regression

    In python using SPSS as a package call their 

    Kind help as I am not familiar but I see it is possible kind help please 



    ------------------------------
    sriram Vaidyanathan
    ------------------------------


  • 2.  RE: A sample to do multiple linear regression in python using spss

    Posted Sun March 26, 2023 01:20 PM
    If you mean invoking spss from another apps to run regression, that is quite possible.
    You would use code like

    import spss
    spss.Submit(""" commands to load data, run regression, and capture the output""")

    To capture the output you want, you would use OMS commands to pick out the relevant tables and save them in a convenient format or, for LINEAR, use the OUTPUT subcommand.

    best subsets are available in LINEAR and stepwise in REGRESSION, among other places..


    --





  • 3.  RE: A sample to do multiple linear regression in python using spss

    Posted Sun March 26, 2023 06:37 PM

    Kind help with a any  suitable book for me to SPSS coding.

    Any other suitable video links too.

    Books also really useful. Mainly I looking to learn the coding in detail for all.

    Kind help 



    ------------------------------
    sriram Vaidyanathan
    ------------------------------



  • 4.  RE: A sample to do multiple linear regression in python using spss

    Posted Sun March 26, 2023 09:37 PM
    The SPSS Command Syntax Reference installed with Statistics covers all the built-in commands.
    On the Doc in PDF format Help link, there is a pdf book on Programming and Data Management that covers Python and R programming as well as the Python and R api pdfs.

    --