Learn R Programming

⚠️There's a newer version (2.8.10) of this package.Take me there.

sjmisc (version 1.0.0)

Miscellaneous Data Management Tools

Description

Collection of several utility functions for reading or writing data, recoding and labelling variables and some frequently used statistical tests.

Copy Link

Version

Install

install.packages('sjmisc')

Monthly Downloads

32,088

Version

1.0.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Lüdecke

Last Published

March 22nd, 2015

Functions in sjmisc (1.0.0)

efc3

Sample dataset from the EUROFAMCARE project
cramer

Cramer's V for a contingency table
group_var

Recode count variables into grouped factors
group_labels

Create labels for recoded groups
chisq_gof

Performs a Chi-square goodness-of-fit-test
levene_test

Plot Levene-Test for One-Way-Anova
mean_n

Compute row means with min amount of valid values
dicho

Dichotomize variables
cv

Compute coefficient of variation
read_stata

Import STATA dataset as data frame into R
phi

Phi value for a contingency table
group_str

Group near elements of string vectors
mic

Computes a mean inter-item-correlation.
cronb

Calculates Cronbach's Alpha for a matrix
get_val_labels

Retrieve value labels of a variable or an SPSS-imported data frame
weight2

Weight a variable
efc

Sample dataset from the EUROFAMCARE project
weight

Weight a variable
set_var_labels

Attach variable label(s) to a single variable or data frame
std_beta

Compute std. beta coefficients and ci of lm and mixed models
to_value

Converts factors to numeric variables
to_label

Converts variable into factor and replaces values with associated value labels
set_val_labels

Attach value labels to a variable or vector
write_stata

Write content of data frame to STATA dta-file
word_wrap

Insert line breaks in long labels
sjmisc-package

Miscellaneous Data Management Tools
get_var_labels

Retrieve variable labels of (an SPSS-imported) data frame or of a specific variable
read_sas

Import SAS dataset as data frame into R
efc2

Sample dataset from the EUROFAMCARE project
str_pos

Find partial matching and close distance elements in strings
to_sjPlot

Convert a haven-imported data frame to sjPlot format
to_fac

Convert variable into factor and keep value labels
reliab_test

Performs a reliability test on an item scale.
recode_to

Recode variable categories into new values.
std_e

Compute standard error for variables
rmse

Compute root mean squared error (RMSE)
table_values

Compute expected and relative table values
write_spss

Write content of data frame to SPSS sav-file
set_na

Set NA for specific variable values
read_spss

Import SPSS dataset as data frame into R
rec

Recode numeric variables
mwu

Performs a Mann-Whitney-U-Test
eta_sq

Compute eta-squared of fitted anova