Hi everyone,
I have some problems with -xttrans- command and need some help please.
To provide some background, here is a dataset:
Basically, I declare -xtset- as a first option:
I am interested in knowing the transition probabilities between different states for households when they change their contracts. What is the probability of observing this or that switch in contracted powers ("kW_power_p1"), in tariffs ("tariff_ekon_id"), etc?
I ran for example the code below and obtained the following message in red:
Does anyone know why I obtained this message?
Thank you in advance.
Best,
Michael
I have some problems with -xttrans- command and need some help please.
To provide some background, here is a dataset:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long(id sp_zipcode) double(date_contract_start date_contract_end) float kW_power_p1 long(product_classification_encod tariff_ekon_id_encod idcontrato) float solar_dummy 74163 7010 20462 21608 3.45 3 2 93357 0 31196 7600 20462 21608 3.45 3 2 93367 0 27112 7400 20465 21608 5.75 3 2 93375 0 17066 7310 20521 20971 5.75 3 2 93376 0 36635 7518 20503 20517 5.75 3 2 93380 0 44639 7570 20467 21608 5.75 3 2 93384 0 35215 7590 20458 21608 5.75 3 2 93387 0 33886 7530 20458 21608 5.75 3 2 93389 0 17068 7340 20461 21608 4.6 3 2 93395 0 35869 7670 20466 21608 9.2 1 2 93398 0 30888 7340 20461 21274 5.75 1 2 93407 0 22556 7620 20458 21307 4.6 1 2 93421 0 27386 7011 20459 21608 3.45 3 2 93425 0 15695 7141 20465 21608 6.9 3 2 93426 0 end format %td date_contract_start format %td date_contract_end abel values product_classification_encod product_classification_encod label def product_classification_encod 1 "Clasico", modify label def product_classification_encod 3 "Sin Sorpresas", modify label values tariff_ekon_id_encod tariff_ekon_id_encod label def tariff_ekon_id_encod 2 "20DHA", modify
Code:
xtset idcontrato date_contract_start
I ran for example the code below and obtained the following message in red:
Code:
· xttrans kW_power_p1 if !missing(powers_tariff2_less_15000w ) no observations · xttrans product_classification_encod if !missing(powers_tariff2_less_15000w ) no observations · xttrans tariff_ekon_id_encod if !missing(powers_tariff2_less_15000w ) no observations
Thank you in advance.
Best,
Michael
Comment