Package: sktools 0.05

sktools: Helpful functions used in my courses

Several helpful functions that I use in my courses

Authors:Sebastian Kranz

sktools_0.05.tar.gz
sktools_0.05.zip(r-4.5)sktools_0.05.zip(r-4.4)sktools_0.05.zip(r-4.3)
sktools_0.05.tgz(r-4.4-any)sktools_0.05.tgz(r-4.3-any)
sktools_0.05.tar.gz(r-4.5-noble)sktools_0.05.tar.gz(r-4.4-noble)
sktools_0.05.tgz(r-4.4-emscripten)sktools_0.05.tgz(r-4.3-emscripten)
sktools.pdf |sktools.html
sktools/json (API)

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

Peer review:

Bug tracker:https://github.com/skranz/sktools/issues

On CRAN:

2.11 score 1 stars 26 scripts 69 exports 17 dependencies

Last updated 4 years agofrom:8e629e09f0 (on master). Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 14 2024
R-4.5-winWARNINGNov 14 2024
R-4.5-linuxWARNINGNov 14 2024
R-4.4-winWARNINGNov 14 2024
R-4.4-macWARNINGNov 14 2024
R-4.3-winWARNINGNov 14 2024
R-4.3-macWARNINGNov 14 2024

Exports:add_lagsadd.by.coladd.list.to.str.expr.listautomatic.type.conversioncbind.list.to.dfcolsplitcross.pastecurrentenvdeparse1dyploteval.string.dplyrexample.str.start.equalexamples.add_lagsexamples.automatic.type.conversionexamples.explore.3d.funexamples.get.coef.and.seexamples.lhsrhs.str.exprexamples.make.date.timeexamples.namedexamples.quick.byexamples.quick.dfexamples.remove.list.from.str.exprexamples.run.scenariosexamples.s_filterexamples.simulation.studyexamples.sort.by.colexamples.subst.exprexamples.wu.hausman.testexplore.3d.funexplore.imageexpr.to.stringget.coef.and.seis.falseis.truelhsrhs.str.exprmake.date.timematrix.to.gridnamedncnlistoutregpaste0plot.with.legendprint.WuHausmanTestquick.byquick.dfremove.global.variablesremove.list.from.str.exprrun.scenarioss_arranges_filters_group_bys_mutates_selects_summarisesimulation.studysimulation.study.with.action.funskMotionChartsort.by.colstr.start.equalstr.to.lengthsubst.exprto.date.timeto.xtstransform.for.growth.analysisvcov.lm.fitview.stata.varwith.random.seedwu.hausman.test

Dependencies:clicpp11data.tablegenericsgluelifecyclelubridatemagrittrR.methodsS3R.ooR.utilsrestorepointrlangstringistringrtimechangevctrs

Readme and manuals

Help Manual

Help pageTopics
Try to transform a vector or columns that are stored as characters or factors of a data.frame automatically in the approbriate typesautomatic.type.conversion
#Set and retrieve global options for restore points # #clone.list
R function for computing two-way cluster-robust standard errors.cluster.vcov
#Restore stored objects by copying them into the global environment # #copy.into.env
Get the environment in which this function is calledcurrentenv
Dynamic time series plots (wrapper to dygraph)dyplot
Internal function used by s_filter, s_select etc.eval.string.dplyr
Uses Manipulate to explore the function z.funexplore.3d.fun
Uses Manipulate to interactively change some parameters of an image.plotexplore.image
Returns estimated coefficients and standard errors from a regression model. One can also specify linear or non-linear transformations of the original coefficients, standard errors are then computed using the delta method.get.coef.and.se
Checks whether val is FALSE, NULL return FALSE If val is a vector vectorized over valis.false
Checks whether val is TRUE, NULL return FALSE If val is a vector vectorized over valis.true
An extended version of ivreg from AER that allows robust standard errorsivregress
Builds a date time object from different componentsmake.date.time
Convert data in matrix format to grid format with key columns corresponding to for row and col names and a value colummatrix.to.grid
Set specified names for x and return the named objectnamed
Creates a vector that is named by the names of its argumentsnc
Creates a list that is named by the names of its argumentsnlist
Draws a base plot with a legend to the right, must play around with width to get a good looking resultplot.with.legend
This function will be called when the results of a wu.hausman.test will be printedprint.WuHausmanTest
Quick version of by using internally data.tablequick.by
A function that generates a data.frame more quickly from vectors of equal lengthsquick.df
Remove all global variables (not functions)remove.global.variables
Computes robust standard errors for the coefficients of a fitted modelrobust.se
A helper function to simulate different scenarios. So far the function is just a simple wrapper to mapply.run.scenarios
Modified version of dplyr's arrange that uses string argumentss_arrange
Modified version of dplyr's filter that uses string argumentss_filter
Modified version of dplyr's group_by that uses string argumentss_group_by
Modified version of dplyr's arrange that uses string argumentss_mutate
Modified version of dplyr's select that uses string argumentss_select
Modified version of dplyr's summarise that uses string argumentss_summarise
A helper function to conduct a simulation study for different parameter combinationssimulation.study
Convenience interface to gvisMotionChart that transforms timevar into a date and allows to set default columnsskMotionChart
Substitute some pattern by a list of alternativessubst.expr
Try to convert a character object to a date time object, trying out several formatsto.date.time
Transform a data from to an xts objectto.xts
Transform data set for analysis in growth regressionstransform.for.growth.analysis
Returns the variance-covariance matrix from the return values of a call to lm.fitvcov.lm.fit
Views variable labels of a data.frame loaded with read.dtaview.stata.var
Evalutes the expression expr with the specified random seed. Afterwards the function restores the original random seed.with.random.seed
A Wu-Hausman Test for a single endogenous variablewu.hausman.test