Learn R Programming

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

sjmisc (version 1.0.1)

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

34,037

Version

1.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Lüdecke

Last Published

April 18th, 2015

Functions in sjmisc (1.0.1)

cronb

Calculates Cronbach's Alpha for a matrix
efc

Sample dataset from the EUROFAMCARE project
eta_sq

Compute eta-squared of fitted anova
phi

Phi value for a contingency table
mean_n

Compute row means with min amount of valid values
read_sas

Import SAS dataset as data frame into R
set_val_labels

Attach value labels to a variable or vector
mwu

Performs a Mann-Whitney-U-Test
std_e

Compute standard error for variables
get_val_labels

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

Sample dataset from the EUROFAMCARE project
cv

Compute coefficient of variation
mic

Computes a mean inter-item-correlation.
cramer

Cramer's V for a contingency table
group_labels

Create labels for recoded groups
get_var_labels

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

Set NA for specific variable values
to_value

Converts factors to numeric variables
recode_to

Recode variable categories into new values.
to_fac

Convert variable into factor and keep value labels
group_str

Group near elements of string vectors
levene_test

Plot Levene-Test for One-Way-Anova
dicho

Dichotomize variables
read_spss

Import SPSS dataset as data frame into R
word_wrap

Insert line breaks in long labels
table_values

Compute expected and relative table values
to_label

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

Import STATA dataset as data frame into R
is_nested

Check whether two factors are nested
weight2

Weight a variable
group_var

Recode count variables into grouped factors
is_crossed

Check whether two factors are crossed
set_var_labels

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

Find partial matching and close distance elements in strings
chisq_gof

Performs a Chi-square goodness-of-fit-test
sjmisc-package

Miscellaneous Data Management Tools
to_sjPlot

Convert a haven-imported data frame to sjPlot format
reliab_test

Performs a reliability test on an item scale.
weight

Weight a variable
rmse

Compute root mean squared error (RMSE)
efc3

Sample dataset from the EUROFAMCARE project
rec

Recode numeric variables
write_spss

Write content of data frame to SPSS sav-file
std_beta

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

Write content of data frame to STATA dta-file
is_num_fac

Check whether a factor has numeric levels only