Extracting Patient Coefficients From SSM Modes

Is it possible to extract the mode coefficients that correspond to the patients used to create the SSM? That is, what coefficient combination will yield an SSM instance equivalent to one of the patients used to create the SSM?

Thank you in advance for your assistance,

Ian

Hey Ian,

One of the attributes of an SSM is an overview of all the coefficients of all input parameters. You can use the following code to have a closer look (code originating from 3-matic 15, might differ in V16):

SSM_patient = SSM_patient_data
coeff = SSM_patient[index].coefficients

Let me know in case it doesn’t work.

Kind regards,
Marnic

Hi Marnic,

I appreciate your assistance with my problem. The code you gave seems like a generalized version of what you’re referring to. I don’t quite understand how to apply it to an actual SSM. Would you mind providing an example of code you’d use to find the coefficients of an SSM’s patients? For example, what is contained in the SSM_patient_data variable you provided above?

Thank you for your time,

Ian

Resolution:

The line of code needed to extract an SSM’s patient’s coefficients is this;
“coefficient_list = ssm.patient_data[index].coefficients”
where the variable “index” determines which patient you want to find the coefficients of.

If you’re looking for a specific coefficient of an SSM’s patient the code would be this instead;
“coefficient = ssm.patient_data[index].coefficients[index2]”

Hope you find this useful,

Ian