I attach equation picture.

and R(t) mean IPS rate. D mean seasonal dummy variable.

but my stata code is wrong...

because predict p is sometimes ' -' value.

Could you help me? This is very challangeing me..

Thanks in advance.

generate date = tm(1990m1) + _n-1

format %tm date

tset date

generate m=month(dofm(date))

reg IPS b12.m L(1/12).IPS #equation 2 , IPS mean industry production rate

I have a problem and I don't Know how to solve it. I have a sample and I would like to create a sub-sample with some specific characteristics. More precisely i Have the following sample (cooperative loans from multiple banks):

loanid bank year

1 A 2000

1 B 2000

1 C 2000

2 D 2000

2 E 2000

2 F 2000

2 E 2000

3 A 2000

3 B 2000

3 C 2000

4 D 2000

4 E 2000

4 A 2000

In this sample I have that for loan 1, banks A,B,C have cooperations.

I would like to have a unique identifications for the banks that have cooperations in order to create a sub-sample only for these cases. Thus, in the previous example this would be:

loanid bank year cooperations

1 A 2000 1

1 B 2000 1

1 C 2000 1

2 D 2000 2

2 E 2000 2

2 F 2000 2

2 E 2000 2

3 A 2000 1

3 B 2000 1

3 C 2000 1

4 D 2000 3

4 E 2000 3

4 A 2000 3

This is a challenging problem.

Thank you in advance,

Sotiris ]]>