Re: [R] Problems on testing moderating effect (or interactive effect).

From: Jonathan Baron <baron_at_psych.upenn.edu>
Date: Tue 04 Jul 2006 - 23:15:33 EST

On 07/04/06 19:51, Guo Wei-Wei wrote:
> Can I use the variance-covariance matrix as the input data? Just like
> what SEM does. My mentor told me to avoid sperate the operation into
> two step, that is to get the factors' means first and then to test the
> relationships. I'm used to use sem package. I'm not familiar with
> lm(). I trid summary(lm(B ~ A*C)) and failed to get any result.
>
> Can sem deal with mediation? And could you tell me the command of
> generating a interaction item of A (nxp) and C (mxp)?

I don't use sem, but I don't see why you need it for this. This is a simple regression problem, so far as I can tell.

I think you need to do some reading of the R documentation. What are A, B, and C? They should be vectors. That was the point of my comment about rowMeans.

You seem to be guessing and relying on authority instead of trying to understand.

-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Jul 04 23:20:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 05 Jul 2006 - 12:16:53 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.