Menu Close

Reply To: Error “The state class could not be located in ‘To Primary Stratum’”

Syncrosim Forums ST-Sim & State-and-Transition Simulation Models Error “The state class could not be located in ‘To Primary Stratum'” Reply To: Error “The state class could not be located in ‘To Primary Stratum’”

#22723
katie-birchardkatie-birchard
Keymaster

Hi Katrina,

How have you set up the data for the Transition Pathways > States and Transition Pathways > Transitions datasheets? (If you are working in R or python rather than the User Interface, the internal names for these datasheets are “stsim_DeterministicTransition” and “stsim_Transition”)

This error can occur if the pathway is going to a state class that has not been defined in the Transition Pathways > States (“stsim_DeterministicTransition”) datasheet for the stratum you are working on. Even if you are not using the “To Primary Stratum” column, you can still get this error as SyncroSim sets the “To Primary Stratum” value to be the same as the “From Primary Stratum” value by default.

Are you using R or python to build your models? In the User Interface, if you try to add state classes to the Transition Pathways > Transitions (“stsim_Transition”) datasheet that don’t have valid stratum values in the Transition Pathways > States (“stsim_DeterministicTransition”) datasheet, you will get an error while you are inputting your data. However, you don’t get the same validation if you are building your models using R or python.

Cheers,
Katie