# Re: st: How to deal with a lot of exogenous variables in Path analysis (help)

 From "Yan Cheng" To statalist@hsphsun2.harvard.edu Subject Re: st: How to deal with a lot of exogenous variables in Path analysis (help) Date Sat, 10 Mar 2007 22:27:25 +0800

```Many thanks for your timely responses. It's very helpful. And  I still
have some questions about path analysis and would like to listen to

1. I have two behavior-related endogenous variables  'risk behavior'
and 'sexual behavior', I assume there are correlation not causal
relationship between risk behavior and sex, then how do I show their
correlation in the syntax?

2. How to calculate the path coefficients of dummy variables? For
example, I divided the occupation into 4 categories: worker, peasant,
clerk and unemployed, the reference group is "unemployed", then how to
calculate the path coefficients of occupation, should I calculate the
path coefficients of worker,peasant, clerk respectively? what is the
meaning of them?

3. Are there any indice to show the goodiness of the model?

4. Before the path analysis, should I conduct the correlation analysis
among all of variables? If so, cause I have different types of
variables (continuous, ordianl and categorical), are there any command
to conduct the analysis at one time?

Looking forward to hearing from you!

Best wishes

Cheng Yan

2007/3/10, Maarten buis <maartenbuis@yahoo.co.uk>:
```
```--- Yan Cheng <yancheng79@gmail.com> wrote:
>      I want to get a model through path analysis, including five
> parts of exogenous variables (background, family, peer, media and
> school environment) and three endogenous variables (knowledge,
> attitude and behavior). In each part of exogenous variables, there
> are more than 5 independent variables, some of them are category
> variables (occupation and family structure) while others are
> continuous variables (age, family support score).

Assuming that all your endogenous variables are influenced by all your
exogenous variables and that knowledge is not influenced by attitude
and behaviour, that attitude is influenced by knowledge but not
behoviour, and behaviour is influenced by both knowledge and attitude
you can estimate the model like this:

pathreg (knowledge background family peer media school) /*
*/ (attitude knowledge background family peer media school) /*
*/ (behavior attitude knowledge background family peer media school) /*

replace background, family, peer, etc. with the variable names of the
variables that are in those blocks. Add the categorical and ordinal
variables as a series of dummie variables as you would in any other
regression type analysis.

-pahtreg- is not part of official Stata, but written by Phill Ender.
Type -findit pathreg- to find it and follow the instructions to install
it. Also see: http://www.ats.ucla.edu/stat/Stata/faq/pathreg.htm

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

___________________________________________________________
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

```
```*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```