Dealing with results
SSMParams
Bases: object
A class to store the results of a single SSM analysis.
ATTRIBUTE | DESCRIPTION |
---|---|
scores |
A numeric vector (or single row dataframe) containing one score for each of a set of circumplex scales.
TYPE:
|
angles |
A numeric vector containing the angular displacement of each circumplex scale
included in
TYPE:
|
scales |
A list of the names of the circumplex scales included in
TYPE:
|
group |
A list of the names of the groups included in
TYPE:
|
measure |
A list of the names of the measures included in
TYPE:
|
elevation |
The elevation of the SSM curve.
TYPE:
|
xval |
The x-value of the SSM curve.
TYPE:
|
yval |
The y-value of the SSM curve.
TYPE:
|
amplitude |
The amplitude of the SSM curve.
TYPE:
|
displacement |
The displacement of the SSM curve.
TYPE:
|
r2 |
The R2 fit of the SSM curve.
TYPE:
|
Source code in circumplex/circumplex.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
label
property
label
Return a label for the SSMParams object.
table
property
table
Return a table of the results.
plot
plot()
Plot the results in the circumplex
RETURNS | DESCRIPTION |
---|---|
Axes
|
plt.Axes: A tuple containing the figure and axis objects. |
Source code in circumplex/circumplex.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
|
profile_plot
profile_plot(ax=None, **kwargs)
Plot the SSM profile.
RETURNS | DESCRIPTION |
---|---|
Axes
|
plt.Axes: A tuple containing the figure and axis objects. |
Source code in circumplex/circumplex.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
SSMResults
Bases: object
A class to store the results of a SSM analysis.
ATTRIBUTE | DESCRIPTION |
---|---|
results |
A list containing the SSMParams results of the SSM analysis.
TYPE:
|
measures |
A list of the names of the measures included in
TYPE:
|
grouping |
A list of the names of the groups included in
TYPE:
|
Source code in circumplex/circumplex.py
161 162 163 164 165 166 167 168 169 170 171 |
|
groups
property
groups
Return a list of the groups included in the analysis.
labels
property
labels
Return a list of the labels included in the analysis.
table
property
table
Return a table of the results.
RETURNS | DESCRIPTION |
---|---|
DataFrame
|
pd.DataFrame: A dataframe containing the results of the SSM analysis. |
plot
plot(colors=None, legend=True, *args, **kwargs)
Plot the results in the circumplex
RETURNS | DESCRIPTION |
---|---|
Axes
|
plt.Axes: A tuple containing the figure and axis objects. |
Source code in circumplex/circumplex.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
|
profile_plots
profile_plots(axes=None)
Plot the SSM profiles.
RETURNS | DESCRIPTION |
---|---|
Axes
|
plt.Axes: A tuple containing the figure and axis objects. |
Source code in circumplex/circumplex.py
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
|
query_label
query_label(label)
Query the results for a specific SSMParams by label.
Source code in circumplex/circumplex.py
199 200 201 202 203 204 205 206 |
|