interaction effect

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

interaction effect

drfg2008

I have a linear regression with a dependent variable (revenue) explained by a dummy coded (0-1) variable (charging ticketing fee no:0 yes:1) and a time variable (date format). The dummy variable (ticketing fee) is used to indicate the date from which a ticketing fee was charged. Since the ticketing fee has been charged since a certain date, the dummy variable changes only once, before a certain date: 0  and after a certain date:1. (This is a very simplified version of the real model without taking into consideration of trend, cycle, AR-component, etc.)

Since the influence of taking the ticketing fee might change with the time, I would like to determine the interaction between the dummy variable and the time variable. Would that be possible by building the product of the two variables and include it into the linear model? I could not find a solution in SPSS Reg. Models for interactive terms.


Example:

input program.
loop time =1 to 10000 by 1.
end case.
end loop.
end file.
end input program.
EXECUTE.

DO IF time < 5000.
COMPUTE ticket = 0.
ELSE.
COMPUTE ticket = 1.
END IF.
EXECUTE.

COMPUTE revenue = RV.NORMAL(1000,10).
COMPUTE ticket_by_time = ticket * time.
EXECUTE.


REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT revenue
  /METHOD=ENTER time ticket ticket_by_time.



 

 
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: interaction effect

David Marso
Administrator
So Frank is now on a 2 month cycle?
http://spssx-discussion.1045642.n5.nabble.com/Interaction-tc5718579.html
--
drfg2008 wrote
I have a linear regression with a dependent variable (revenue) explained by a dummy coded (0-1) variable (charging ticketing fee no:0 yes:1) and a time variable (date format). The dummy variable (ticketing fee) is used to indicate the date from which a ticketing fee was charged. Since the ticketing fee has been charged since a certain date, the dummy variable changes only once, before a certain date: 0  and after a certain date:1. (This is a very simplified version of the real model without taking into consideration of trend, cycle, AR-component, etc.)

Since the influence of taking the ticketing fee might change with the time, I would like to determine the interaction between the dummy variable and the time variable. Would that be possible by building the product of the two variables and include it into the linear model? I could not find a solution in SPSS Reg. Models for interactive terms.


Example:

input program.
loop time =1 to 10000 by 1.
end case.
end loop.
end file.
end input program.
EXECUTE.

DO IF time < 5000.
COMPUTE ticket = 0.
ELSE.
COMPUTE ticket = 1.
END IF.
EXECUTE.

COMPUTE revenue = RV.NORMAL(1000,10).
COMPUTE ticket_by_time = ticket * time.
EXECUTE.


REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT revenue
  /METHOD=ENTER time ticket ticket_by_time.
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?"
Reply | Threaded
Open this post in threaded view
|

Re: interaction effect

drfg2008
No, it must be Alzheimer.

Thanks

(in case I'll ask again ... )
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: interaction effect

David Marso
Administrator
Maybe on your end.
For me it is deja vu.
--
drfg2008 wrote
No, it must be Alzheimer.

Thanks

(in case I'll ask again ... )
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?"
Reply | Threaded
Open this post in threaded view
|

Automatic reply: interaction effect

TheisenM@adea.org

I am currently out of the office attending meetings and will return Friday, May 24.  I will have limited access to email and will get back to you as soon as possible. 

Thank you,
McKayla