# Regression Question

8 messages
Open this post in threaded view
|

## Regression Question

 I have what is a simple question. Is there a way to save the residual mean square is a file like one can do with CORB or COVB specification in the regression procedure? By residual mean square I mean, for a simple linear regression model, ((y-(a+bx))**2)/(N-df), where df is degrees of freedom, and y is the actual y value. I am running a regression procedure in a loop in a DEFINE and need to be able to uniquely identify the files that have the residual mean square (each with a name like concat(RME,!i), where !i is the DEFINE loop variable). This can be done with the CORB and COVB specifications. Stan ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Open this post in threaded view
|

## Re: Regression Question

Open this post in threaded view
|

## Re: Regression Question

 Thanks, David. This is a personal project and so it does not require the rigor that might be necessary in a working environment. I already have the syntax from previous work on this that takes the coefficients in the COVB file to compute the estimate. With these I can compute the residuals. I am surprised SPSS does not include writing out the mean square errors in any of the files like COVB, CORB, or COVRATIO. Wading into OMS and MATRIX is more than I want to spend time on. Stan On 8/13/2018 6:42 AM, David Marso wrote: > Look into OMS. An alternative is to roll your own with MATRIX. > > > Stan Gorodenski wrote >     >> I have what is a simple question. Is there a way to save the residual >> mean square is a file like one can do with CORB or COVB specification in >> the regression procedure? By residual mean square I mean, for a simple >> linear regression model, >> ((y-(a+bx))**2)/(N-df), where df is degrees of freedom, and y is the >> actual y value. >> I am running a regression procedure in a loop in a DEFINE and need to be >> able to uniquely identify the files that have the residual mean square >> (each with a name like concat(RME,!i), where !i is the DEFINE loop >> variable). This can be done with the CORB and COVB specifications. >> Stan >> >> ===================== >> To manage your subscription to SPSSX-L, send a message to >>       >     >> LISTSERV@.UGA >>       >     >>   (not to SPSSX-L), with no body text except the >> command. To leave the list, send the command >> SIGNOFF SPSSX-L >> For a list of commands to manage subscriptions, send the command >> INFO REFCARD >> < >> /quote<quote author="Stan Gorodenski" >> > >> I have what is a simple question. Is there a way to save the residual >> mean square is a file like one can do with CORB or COVB specification in >> the regression procedure? By residual mean square I mean, for a simple >> linear regression model, >> ((y-(a+bx))**2)/(N-df), where df is degrees of freedom, and y is the >> actual y value. >> I am running a regression procedure in a loop in a DEFINE and need to be >> able to uniquely identify the files that have the residual mean square >> (each with a name like concat(RME,!i), where !i is the DEFINE loop >> variable). This can be done with the CORB and COVB specifications. >> Stan >> >> ===================== >> To manage your subscription to SPSSX-L, send a message to >>       >     >> LISTSERV@.UGA >>       >     >>   (not to SPSSX-L), with no body text except the >> command. To leave the list, send the command >> SIGNOFF SPSSX-L >> For a list of commands to manage subscriptions, send the command >> INFO REFCARD >>       > > > > > ----- > Please reply to the list and not to my personal email. > Those desiring my consulting or training services please feel free to email me. > --- > "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." > Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" > -- > Sent from: http://spssx-discussion.1045642.n5.nabble.com/> > ===================== > To manage your subscription to SPSSX-L, send a message to > [hidden email] (not to SPSSX-L), with no body text except the > command. To leave the list, send the command > SIGNOFF SPSSX-L > For a list of commands to manage subscriptions, send the command > INFO REFCARD > > >     ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Open this post in threaded view
|

## Re: Regression Question

Open this post in threaded view
|

## Re: Regression Question

Open this post in threaded view
|