class_docstr: Create a new analysis for a group. All analyses are stored
  in ``Analysis.analyses``. Duplicate keys are not allowed.
  
  Parameters
  ----------
  model : alphapy.Model
      Model object for the analysis.
  group : alphapy.Group
      The group of members in the analysis.
  
  Attributes
  ----------
  Analysis.analyses : dict
      Class variable for storing all known analyses
class_docstr_tok: ["Create","a","new","analysis","for","a","group",".","All","analyses","are","stored","in","``","Analysis.analyses","``",".","Duplicate","keys","are","not","allowed",".","Parameters","--","--","--","--","--","model",":","alphapy.Model","Model","object","for","the","analysis",".","group",":","alphapy.Group","The","group","of","members","in","the","analysis",".","Attributes","--","--","--","--","--","Analysis.analyses",":","dict","Class","variable","for","storing","all","known","analyses"]
code: def __init__(self, model, group):
      # set analysis name
      name = model.specs["directory"].split(SSEP)[-1]
      target = model.specs["target"]
      an = analysis_name(name, target)
      # initialize analysis
      self.name = an
      self.model = model
      self.group = group
      # add analysis to analyses list
      Analysis.analyses[an] = self
  
file_path: AlphaPy/alphapy/analysis.py
imports: from alphapy.__main__ import main_pipeline
  from alphapy.frame import load_frames
  from alphapy.frame import sequence_frame
  from alphapy.frame import write_frame
  from alphapy.globals import SSEP, TAG_ID, USEP
  from alphapy.utilities import subtract_days
  from datetime import timedelta
  import logging
  import pandas
  from pandas.tseries.offsets import BDay
label_desc: Use image node_id 2 to create a new Analysis object from inherited base classes: object with example: obj = Analysis(model, group)