Learn R Programming

codecountR (version 0.0.4.8)

Counting Codes in a Text and Preparing Data for Analysis

Description

Data analysis often requires coding, especially when data are collected through interviews, observations, or questionnaires. As a result, code counting and data preparation are essential steps in the analysis process. Analysts may need to count the codes in a text (Tokenization, counting of pre-established codes, computing the co-occurrence matrix by line) and prepare the data (e.g., min-max normalization, Z-score, robust scaling, Box-Cox transformation, and non-parametric bootstrap). For the Box-Cox transformation (Box & Cox, 1964, ), the optimal Lambda is determined using the log-likelihood method. Non-parametric bootstrap involves randomly sampling data with replacement. Two random number generators are also integrated: a Lehmer congruential generator for uniform distribution and a Box-Muller generator for normal distribution. Package for educational purposes.

Copy Link

Version

Install

install.packages('codecountR')

Monthly Downloads

164

Version

0.0.4.8

License

GPL-3

Maintainer

Philippe Cohard

Last Published

March 1st, 2025

Functions in codecountR (0.0.4.8)

verify

verify
testPairs

testPairs
zScore

zScore
congruGen

congruGen
loadCodes

loadCodes
cooc

cooc
BoxAndCox

BoxAndCox
codeCount

codeCount
BoxMullerGen

BoxMullerGen
normMinMax

normMinMax
robustScal

robustScal
analysCodesList

analysCodesList
bootStrap

bootStrap
subCalcBoxAndCox

subCalcBoxAndCox
tokenization

tokenization