class_docstr: Inherits time series methods from TSM parent class.
  
  **** AUTOREGRESSIVE INTEGRATED MOVING AVERAGE EXOGENOUS (ARIMAX) MODELS ****
  
  Parameters
  ----------
  data : pd.DataFrame
      Field to specify the univariate time series data that will be used.
  
  formula : string
      patsy string notation describing the regression
  
  ar : int
      Field to specify how many AR lags the model will have.
  
  ma : int
      Field to specify how many MA lags the model will have.
  
  integ : int (default : 0)
      Specifies how many times to difference the time series.
  
  family : family object
      E.g pf.Normal(), pf.t(), pf.Laplace()...
class_docstr_tok: ["Inherits","time","series","methods","from","TSM","parent","class",".","*","*","*","*","AUTOREGRESSIVE","INTEGRATED","MOVING","AVERAGE","EXOGENOUS","(","ARIMAX",")","MODELS","*","*","*","*","Parameters","--","--","--","--","--","data",":","pd.DataFrame","Field","to","specify","the","univariate","time","series","data","that","will","be","used",".","formula",":","string","patsy","string","notation","describing","the","regression","ar",":","int","Field","to","specify","how","many","AR","lags","the","model","will","have",".","ma",":","int","Field","to","specify","how","many","MA","lags","the","model","will","have",".","integ",":","int","(","default",":","0",")","Specifies","how","many","times","to","difference","the","time","series",".","family",":","family","object","E.g","pf.Normal","(",")",",","pf.t","(",")",",","pf.Laplace","(",")","..."]
docstr: Obtains model scale, shape and skewness latent variables
  
  Parameters
  ----------
  transformed_lvs : np.array
      Transformed latent variable vector
  
  Returns
  ----------
  - Tuple of model scale, model shape, model skewness
docstr_tok: ["Obtains","model","scale",",","shape","and","skewness","latent","variables","Parameters","--","--","--","--","--","transformed_lvs",":","np.array","Transformed","latent","variable","vector","Returns","--","--","--","--","--","-","Tuple","of","model","scale",",","model","shape",",","model","skewness"]
code: def _get_scale_and_shape(self, transformed_lvs):
      """Obtains model scale, shape and skewness latent variables
  
      Parameters
      ----------
      transformed_lvs : np.array
          Transformed latent variable vector
  
      Returns
      ----------
      - Tuple of model scale, model shape, model skewness
      """
  
      if self.scale is True:
          if self.shape is True:
              model_shape = transformed_lvs[-1]
              model_scale = transformed_lvs[-2]
          else:
              model_shape = 0
              model_scale = transformed_lvs[-1]
      else:
          model_scale = 0
          model_shape = 0
  
      if self.skewness is True:
          model_skewness = transformed_lvs[-3]
      else:
          model_skewness = 0
  
      return model_scale, model_shape, model_skewness
  
imports: import sys
  import numpy
  import pandas
  import scipy.stats
  import scipy.special
  from patsy import dmatrices, dmatrix, demo_data
  from ..None import families
  from ..None import output
  from ..None import tests
  from ..None import tsm
  from ..None import data_check
  from .arma_recursions import arimax_recursion
label_desc: Use image node_id 4 for calling the ARIMAX obj's underlying member method code with example usage: obj._get_scale_and_shape(transformed_lvs) and returns: model_scale,  model_shape,  model_skewness