An Imperative Library for Data Manipulation


[Up] [Top]

Documentation for package ‘genvar’ version 0.0.2.0

Help Pages

addobs add observations to the data set
assert_loaded assert a dataset is loaded in genvar and error otherwise
builddata creates a dataset of a given number of observations
capture captures an expression, returning TRUE if there was an error and FALSE otherwise
clear clears the dataset in memory
collapse collapses a data set by variables using arbitrary aggregation functions
count Counts how many observations (optionally, satisfying a condition)
describe lists the names of the variables in the dataset
destring convert a variable with string type into a numeric value
do Executes R code on the dataset
dropif drops rows from the dataset
dropvar drops variables in varlist format from the dataset
estimates_get display estimation results
estimates_restore restore 'genvar' estimates
estimates_save save 'genvar' estimates
estimates_store store 'genvar' estimates
estimates_use loads 'genvar' estimates from file
fillin Fully rectangularize a dataset
forval Execute code in the datasets environment for all values of a vector, replacing a macro with the value in each iteration
forvar apply a function to each of a list of variables
gen generates a new variable that is a transformation of existing variables in the dataset or replaces one
getdata exports data frame from genvar environment to R environment
gvmerge merge two datasets
gvplot convenience interface to R's 'plot' command
headdata get first few observations
is_loaded a command to determine whether data is loaded
keepif keeps some rows in the dataset and drops the rest
keepvar keeps some variables in the dataset and drops the others
L a function to take lags and leads with panel data
listdata lists datasets currently in memory
listif prints the part of the dataset that satisfies certain conditions
logit estimate a logistic regression
namedata names a data set so that it can be restored by that name later on
pred gets fitted values from a genvar regression object
preserve preserve a data set before modification
probit estimate a probit regression
reg regress y on x with robust standard errors, clustered standard errors, HAC standard errors, panel fixed effects, etc
rename renames variables in the dataset
restore restore a dataset from a previous preserve to be currently used
savedata saves data to a CSV or RDS file
shape reshapes a data set from wide to long or from long to wide formats
structure_varlist creates a formula object from a varlist, mostly for internal use.
subset.varlist generate a varlist that is a subset of another
summarize summarize a variable list, giving basic descriptive statistics
switchdata switches data sets among the datasets you have in memory
taildata get last few observations
tostring convert a variable of another type into a string variable
use uses a dataset, marking it as the active dataset
xtset prepares a panel dataset for lag operations