Hi,
I tried to use the cmp command for 3 equations: the first one is a linear regression of loan granted amount, the second is the Heckman selection equation with "Octroi" being the dummy variable to be selected, and the third one is a linear regression of loan requested amount, as it must be endogenous for the two other equations.
Here is the command:
cmp (montantacc=Genre montantdem besoin superficie age EDUC taillemen Inactif proprietaire Creation Cofinancement Investissement Relance Campagricole Apport clientmen actifmen Autrecred Garantiesalaire depenses revenutotal nbemployes nbemployessaison genreagent ageagent EDUCagent nbcreditparan expeagent i.gouv || Branch
(selectvar Octroi= Genre montantdem besoin age EDUC taillemen Divorced Widowed Married Inactif proprietaire i.gouv Agri Prod Commerce Services Creation Cofinancement Educlogement Investissement Relance Campagricole Apport clientmen actifmen Autrecred genreagent ageagent EDUCagent nbcreditparan expeagent) (montantdem=Genre Montantdem13 besoin age EDUC taillemen Single Divorced Widowed Married Inactif proprietaire Agri Prod Commerce Services Conditionsdevie Creation Cofinancement Educlogement Investissement Relance Campagricole Apport clientmen actifmen Autrecred || Branch
, ind(selectvar*$cmp_cont $cmp_cont)
I have an error message:
factor variables not allowed
r(101);
Is this a syntax issue ? of course I have both factor and continuous variables in the equations. Maybe it's the last part of the command which is not correctly specified ?
It's my first time with cmp.
Thank you !
I tried to use the cmp command for 3 equations: the first one is a linear regression of loan granted amount, the second is the Heckman selection equation with "Octroi" being the dummy variable to be selected, and the third one is a linear regression of loan requested amount, as it must be endogenous for the two other equations.
Here is the command:
cmp (montantacc=Genre montantdem besoin superficie age EDUC taillemen Inactif proprietaire Creation Cofinancement Investissement Relance Campagricole Apport clientmen actifmen Autrecred Garantiesalaire depenses revenutotal nbemployes nbemployessaison genreagent ageagent EDUCagent nbcreditparan expeagent i.gouv || Branch
(selectvar Octroi= Genre montantdem besoin age EDUC taillemen Divorced Widowed Married Inactif proprietaire i.gouv Agri Prod Commerce Services Creation Cofinancement Educlogement Investissement Relance Campagricole Apport clientmen actifmen Autrecred genreagent ageagent EDUCagent nbcreditparan expeagent) (montantdem=Genre Montantdem13 besoin age EDUC taillemen Single Divorced Widowed Married Inactif proprietaire Agri Prod Commerce Services Conditionsdevie Creation Cofinancement Educlogement Investissement Relance Campagricole Apport clientmen actifmen Autrecred || Branch
, ind(selectvar*$cmp_cont $cmp_cont)I have an error message:
factor variables not allowed
r(101);
Is this a syntax issue ? of course I have both factor and continuous variables in the equations. Maybe it's the last part of the command which is not correctly specified ?
It's my first time with cmp.
Thank you !

Comment