simple question (but never needed it): How to comment several lines (not with * every line).
Dr. Frank Gaeth
|
****************************************************.
*normal comments work until a period below me does not work, because there are no periods before the compute compute b = 1. *look I do work - because of the period here ->. compute c = 1. *This is what the comments look like using the toggle comment tool. *Go to [Tools -> Toggle Comment Selection] in the toolbar. * compute c = 1. * compute c = 1. * compute c = 1. * compute c = 1. * compute c = 1. *This is pretty easy to comment multiple lines. ****************************************************. In SAS if you enclose a set of syntax withing /* */ it comments out the entire section - but that is not the behavior in SPSS. The tool on the menu bar works pretty well though - even though it places asterisks on every line with a command. |
Something I've never done is provide inline comments in SPSS as follows: PROC GLIMMIX data=<data file name> method=quad; *Insert method here; CLASS group subject; *Insert categorical variables here;
MODEL y = group / s link=logit dist=binary; *Insert Fixed Effects here; RANDOM intercept / subject=subject; *RANDOM intercept statement with subject as identifier; RUN; I can even go as far as doing something like this:
PROC GLIMMIX data=<data file name> method=quad; CLASS group subject; MODEL y = group /*x*/ / s link=logit dist=binary; RANDOM intercept / subject=subject; *
RUN; The MODEL statement above has removed x as a fixed effect from the model. Is there a way to do this in SPSS? Ryan On Wed, Jun 18, 2014 at 7:58 AM, Andy W <[hidden email]> wrote: ****************************************************. |
DESCRIPTIVES VARIABLES=consump price
/STATISTICS=MEAN /* perceptive remark here */ STDDEV RANGE MIN MAX. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] phone: 720-342-5621 From: Ryan Black <[hidden email]> To: [hidden email], Date: 06/18/2014 06:24 AM Subject: Re: [SPSSX-L] comment Sent by: "SPSSX(r) Discussion" <[hidden email]> Something I've never done is provide inline comments in SPSS as follows: PROC GLIMMIX data=<data file name> method=quad; *Insert method here; CLASS group subject; *Insert categorical variables here; MODEL y = group / s link=logit dist=binary; *Insert Fixed Effects here; RANDOM intercept / subject=subject; *RANDOM intercept statement with subject as identifier; RUN; I can even go as far as doing something like this: PROC GLIMMIX data=<data file name> method=quad; CLASS group subject; MODEL y = group /*x*/ / s link=logit dist=binary; RANDOM intercept / subject=subject; * RUN; The MODEL statement above has removed x as a fixed effect from the model. Is there a way to do this in SPSS? Ryan On Wed, Jun 18, 2014 at 7:58 AM, Andy W <apwheele@...> wrote: ****************************************************. *normal comments work until a period below me does not work, because there are no periods before the compute compute b = 1. *look I do work - because of the period here ->. compute c = 1. *This is what the comments look like using the toggle comment tool. *Go to [Tools -> Toggle Comment Selection] in the toolbar. * compute c = 1. * compute c = 1. * compute c = 1. * compute c = 1. * compute c = 1. *This is pretty easy to comment multiple lines. ****************************************************. In SAS if you enclose a set of syntax withing /* */ it comments out the entire section - but that is not the behavior in SPSS. The tool on the menu bar works pretty well though - even though it places asterisks on every line with a command. ----- Andy W apwheele@... http://andrewpwheeler.wordpress.com/ -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/comment-tp5726517p5726518.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@... (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 |
Free forum by Nabble | Edit this page |