foghorn-data-crsp
Copyright(c) Rob Tumarkin 2025
LicenseNon-commercial (see LICENSE file)
Maintainerhttps://github.com/tumarkin
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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

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

Instances details
Show (CcmLookupV i a) # 
Instance details

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) # 
Instance details

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) # 
Instance details

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 #