Package: farr 1.0.9000

farr: Data and Code for Empirical Research in Accounting

Handy functions and data to support the course book 'Empirical Research in Accounting: Tools and Methods' (1st ed.). Chapman and Hall/CRC. <doi:10.1201/9781003456230> and <https://iangow.github.io/far_book/>.

Authors:Ian Gow [aut, cre]

farr_1.0.9000.tar.gz
farr_1.0.9000.zip(r-4.7)farr_1.0.9000.zip(r-4.6)farr_1.0.9000.zip(r-4.5)
farr_1.0.9000.tgz(r-4.6-any)farr_1.0.9000.tgz(r-4.5-any)
farr_1.0.9000.tar.gz(r-4.6-any)farr_1.0.9000.tar.gz(r-4.5-any)
farr_1.0.9000.tgz(r-4.5-emscripten)
farr.pdf |farr.html
farr/json (API)
NEWS

# Install 'farr' in R:
install.packages('farr', repos = c('https://iangow.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/iangow/farr/issues

Datasets:

On CRAN:

Conda:

accountingfinance

5.81 score 20 stars 92 scripts 295 downloads 25 exports 36 dependencies

Last updated from:d43c10e6b5. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK153
source / vignettesOK206
linux-release-x86_64OK141
macos-release-arm64OK1131
macos-oldrel-arm64OK1659
windows-develOK2809
windows-releaseOK2954
windows-oldrelOK85
wasm-releaseOK121

Exports:%>%aucconfusion_statsduckdb_to_parquetform_decilesget_annc_datesget_event_cum_retsget_event_cum_rets_mthget_event_datesget_event_retsget_ff_indget_got_dataget_idd_periodsget_me_breakpointsget_size_rets_monthlyget_test_scoresget_trading_datesload_parquetndcgpg_to_parquetrocrusboostsystem_timetruncatewinsorize

Dependencies:bitbit64blobclicliprcpp11crayonDBIdbplyrdplyrgenericsgluehmslifecyclelubridatemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangrpartstringistringrtibbletidyrtidyselecttimechangetzdbutf8vctrsvroomwithr

Readme and manuals

Help Manual

Help pageTopics
AAER dates from SECaaer_dates
AAERs from Bao et al. (2020)aaer_firm_year
Dates for Apple Eventsapple_events
Area under curveauc
Australian bank fundamental dataaus_bank_funds
Australian bank stock market dataaus_bank_rets
Australian banksaus_banks
Firm-years in RDD analysis of Bloomfield (2021)bloomfield_2021
Tags on StackOverflowby_tag_year
Camp attendancecamp_attendance
Data for CMSWcmsw_2018
Data on accruals and auditor choicecomp
Confusion statistics.confusion_stats
Export a DuckDB-backed lazy table to Parquet via COPYduckdb_to_parquet
Firm-years for replication of Fang, Huang and Karpoff (2016)fhk_firm_years
Treatment indicators for SHO pilot firmsfhk_pilot
Form decilesform_deciles
Produce a table mapping announcements to trading datesget_annc_dates
Produce a table of cumulative event returnsget_event_cum_rets
Produce a table of cumulative event returns using monthly dataget_event_cum_rets_mth
Produce a table mapping announcements to trading datesget_event_dates
Produce a table of event returnsget_event_rets
Fetch Fama-French industry grouping.get_ff_ind
Generate simulated data as described in Gow, Ormazabal and Taylor (2010).get_got_data
Period for Inevitable Disclosure Doctrine (IDD)get_idd_periods
Create a table of with cut-offs for size portfoliosget_me_breakpoints
Create a table of monthly returns for size portfoliosget_size_rets_monthly
A function returning data on test_scoresget_test_scores
Produce a table mapping dates on CRSP to "trading days"get_trading_dates
GVKEY-CIK linksgvkey_ciks
Dates for Inevitable Disclosure Doctrine (IDD)idd_dates
Data on public floatiliev_2010
GVKEYs used in Li, Lin and Zhang (2018).llz_2018
Function to load parquet file into database.load_parquet
Data on firms suffering natural disastersmichels_2017
Calculate metric: NDCG at kndcg
Save WRDS table as parquet file.pg_to_parquet
A function returning data for a ROC plot.roc
Random under-sampling functionrus
RUSBoost for two-class problemsrusboost
Russell 3000 stocks at time of SEC Reg SHO sample formationsho_r3000
Russell 3000 sample used by SEC with GVKEYssho_r3000_gvkeys
Russell 3000 sample used by SECsho_r3000_sample
Tickers of pilot firms for Reg SHOsho_tickers
Data on firm headquarters based on SEC EDGAR filingsstate_hq
Version of 'system.time()' that works with assignmentsystem_time
Test scorestest_scores
Truncate a vector.truncate
Customer names that represent non-disclosuresundisclosed_names
Winsorize a vectorwinsorize
Event dates from Zhang (2007)zhang_2007_events
Event windows from Zhang (2007)zhang_2007_windows