Learn R Programming

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

misty (version 0.5.0)

Miscellaneous Functions 'T. Yanagida'

Description

Miscellaneous functions for descriptive statistics (e.g., frequency table, cross tabulation, multilevel descriptive statistics, multilevel R-squared measures, within-group and between-group correlation matrix, various effect size measures), data management (e.g., grand-mean and group-mean centering, coding variables and reverse coding items, scale and group scores, reading and writing SPSS and Excel files), missing data (e.g., descriptive statistics for missing data, missing data pattern, Little's test of Missing Completely at Random, and auxiliary variable analysis), item analysis (e.g., coefficient alpha and omega, multilevel confirmatory factor analysis, between-group and longitudinal measurement equivalence evaluation, cross-level measurement equivalence evaluation, and multilevel composite reliability), and statistical analysis (e.g., confidence intervals, collinearity and residual diagnostics, dominance analysis, between- and within-subject analysis of variance, t-test, z-test, sample size determination).

Copy Link

Version

Install

install.packages('misty')

Monthly Downloads

2,637

Version

0.5.0

License

MIT + file LICENSE

Maintainer

Takuya Yanagida

Last Published

August 7th, 2023

Functions in misty (0.5.0)

check.resid

Residual Diagnostics
chr.gsub

Multiple Pattern Matching And Replacements
aov.w

Repeated Measures Analysis of Variance (Within-Subject ANOVA)
aov.b

Between-Subject Analysis of Variance
center

Centering at the Grand Mean and Centering Within Cluster
check.outlier

Statistical Measures for Leverage, Distance, and Influence
chr.omit

Omit Strings
check.collin

Collinearity Diagnostics
as.na

Replace User-Specified Values With Missing Values
chr.trim

Trim Whitespace from String
ci.mean.diff

Confidence Interval for the Difference in Arithmetic Means
ci.mean.w

Within-Subject Confidence Interval for the Arithmetic Mean
ci.mean

Confidence Interval for the Arithmetic Mean
ci.prop

Confidence Interval for Proportions
ci.sd

Confidence Interval for the Standard Deviation
ci.prop.diff

Confidence Interval for the Difference in Proportions
ci.median

Confidence Interval for the Median
cohens.d

Cohen's d
ci.var

Confidence Interval for the Variance
cluster.scores

Cluster Scores
df.merge

Merge Multiple Data Frames
df.rbind

Combine Data Frames by Rows, Filling in Missing Columns
cor.cont

Pearson's Contingency Coefficient
cor.phi

Phi Coefficient
df.duplicated

Extract Duplicated or Unique Rows
descript

Descriptive Statistics
cor.matrix

Correlation Matrix
cor.poly

Polychoric Correlation Matrix
crosstab

Cross Tabulation
cor.cramer

Cramer's V
df.rename

Rename Columns in a Matrix or Variables in a Data Frame
dominance

Dominance Analysis
df.sort

Data Frame Sorting
item.alpha

Coefficient Alpha and Item Statistics
indirect

Confidence Intervals for the Indirect Effect
dummy.c

Dummy Coding
freq

Frequency Table
eta.sq

Eta Squared
dominance.manual

Dominance Analysis, Manually Inputting a Correlation Matrix
item.cfa

Confirmatory Factor Analysis
item.reverse

Reverse Code Scale Item
kurtosis

Excess Kurtosis
mplus.lpa

Mplus Model Specification for Latent Profile Analysis
item.scores

Compute Scale Scores
item.invar

Between-Group and Longitudinal Measurement Invariance Evaluation
libraries

Load and Attach Multiple Packages
item.omega

Coefficient Omega, Hierarchical Omega, and Categorical Omega
multilevel.cor

Within-Group and Between-Group Correlation Matrix
multilevel.descript

Multilevel Descriptive Statistics
multilevel.cfa

Multilevel Confirmatory Factor Analysis
multilevel.fit

Simultaneous and Level-Specific Multilevel Model Fit Information
multilevel.indirect

Confidence Interval for the Indirect Effect in a 1-1-1 Multilevel Mediation Model
multilevel.invar

Cross-Level Measurement Invariance Evaluation
multilevel.icc

Intraclass Correlation Coefficient, ICC(1) and ICC(2)
multilevel.r2.manual

R-Squared Measures for Multilevel and Linear Mixed Effects Models by Rights and Sterba (2019), Manually Inputting Parameter Estimates
read.mplus

Read Mplus Data File and Variable Names
na.as

Replace Missing Values With User-Specified Values
print.misty.object

Print misty.object object
read.sav

Read SPSS File
robust.coef

Unstandardized Coefficients with Heteroscedasticity-Consistent Standard Errors
na.test

Little's Missing Completely at Random (MCAR) Test
na.auxiliary

Auxiliary variables analysis
na.pattern

Missing Data Pattern
script.open

Open R Script, R Markdown script, or SQL Script in RStudio
script.new

Open new R Script, R Markdown script, or SQL Script in RStudio
na.coverage

Variance-Covariance Coverage
multilevel.omega

Multilevel Composite Reliability
std.coef

Standardized Coefficients
test.levene

Levene's Test for Homogeneity of Variance
script.close

Close R Script in RStudio
rwg.lindell

Lindell, Brandt and Whitney (1999) r*wg(j) Within-Group Agreement Index for Multi-Item Scales
skewness

Skewness
result.lpa

Result Table for Latent Profile Analysis Estimated in Mplus
multilevel.r2

R-Squared Measures for Multilevel and Linear Mixed Effects Models
na.prop

Proportion of Missing Data for Each Case
script.save

Save R Script in RStudio
size.prop

Sample Size Determination for Testing Proportions
size.cor

Sample Size Determination for Testing Pearson's Correlation Coefficient
run.mplus

Run Mplus Models
na.descript

Descriptive Statistics for Missing Data
size.mean

Sample Size Determination for Testing Arithmetic Means
na.indicator

Missing Data Indicator Matrix
write.sav

Write SPSS File
test.z

z-Test
write.xlsx

Write Excel File
rec

Recode Variable
read.xlsx

Read Excel File
write.mplus

Write Mplus Data File
restart

Restart R Session
setsource

Set Working Directory to the Source File Location
test.t

t-Test
test.welch

Welch's Test
write.result

Write Results of a misty Object into an Excel file