Copyright | (c) Rob Tumarkin 2025 |
---|---|
License | Non-commercial (see LICENSE file) |
Maintainer | https://github.com/tumarkin |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Foghorn.Data.Crsp.CcmLookup
Description
This module defines the variable set for the CRSP/Compustat Merged (CCM) Link
Table, represented as a GADT (CcmLookupV
). Each constructor corresponds to
a named link-table variable and is indexed by an EconType
(e.g., Int_
,
Text_
, Date_
).
Synopsis
- data CcmLookupV (i :: EconIndices) (a :: EconType) where
- Gvkey :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Linkdt :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Date_
- Linkenddt :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Date_
- Lpermco :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Lpermno :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Cik :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_
- Conm :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_
- Cusip :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_
- Gind :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Gsubind :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Naics :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Sic4 :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Sic4_
- Tic :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_
- Year1 :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
- Year2 :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_
Documentation
data CcmLookupV (i :: EconIndices) (a :: EconType) where #
Generalized algebraic data type (GADT) of CCM Link Table variables.
Constructors
Gvkey :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | Standard and Poor's Identifier |
Linkdt :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Date_ | First Effective Date of Link |
Linkenddt :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Date_ | Last Effective Date of Link |
Lpermco :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | Historical CRSP PERMCO Link to COMPUSTAT Record |
Lpermno :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | Historical CRSP PERMNO Link to COMPUSTAT Record |
Cik :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_ | CIK Number |
Conm :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_ | Company Name |
Cusip :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_ | CUSIP |
Gind :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | GIC Industries |
Gsubind :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | GIC Sub-Industries |
Naics :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | North American Industry Classification Code |
Sic4 :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Sic4_ | Standard Industry Classification Code |
Tic :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Text_ | Ticker Symbol |
Year1 :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | First Fiscal Year of Available Accounting Data |
Year2 :: CcmLookupV ('Panel 'Gvkey_ 'Datadate_) 'Int_ | Last Fiscal Year of Available Accounting Data |
Instances
Show (CcmLookupV i a) # | |
Defined in Foghorn.Data.Crsp.CcmLookup Methods showsPrec :: Int -> CcmLookupV i a -> ShowS # show :: CcmLookupV i a -> String # showList :: [CcmLookupV i a] -> ShowS # | |
Eq (CcmLookupV i a) # | |
Defined in Foghorn.Data.Crsp.CcmLookup Methods (==) :: CcmLookupV i a -> CcmLookupV i a -> Bool # (/=) :: CcmLookupV i a -> CcmLookupV i a -> Bool # | |
Ord (CcmLookupV i a) # | |
Defined in Foghorn.Data.Crsp.CcmLookup Methods compare :: CcmLookupV i a -> CcmLookupV i a -> Ordering # (<) :: CcmLookupV i a -> CcmLookupV i a -> Bool # (<=) :: CcmLookupV i a -> CcmLookupV i a -> Bool # (>) :: CcmLookupV i a -> CcmLookupV i a -> Bool # (>=) :: CcmLookupV i a -> CcmLookupV i a -> Bool # max :: CcmLookupV i a -> CcmLookupV i a -> CcmLookupV i a # min :: CcmLookupV i a -> CcmLookupV i a -> CcmLookupV i a # |