Learn R Programming

misty (version 0.6.7)

Miscellaneous Functions 'T. Yanagida'

Description

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

Copy Link

Version

Install

install.packages('misty')

Monthly Downloads

3,370

Version

0.6.7

License

MIT + file LICENSE

Maintainer

Last Published

September 18th, 2024

Functions in misty (0.6.7)

aov.b

Between-Subject Analysis of Variance
as.na

Replace User-Specified Values With Missing Values or Missing Values With User-Specified Values
blimp.run

Run Blimp Models
blimp

Create, Run, and Print Blimp Models
blimp.print

Print Blimp Output
blimp.update

Blimp Input Updating
blimp.bayes

Blimp Summary Measures, Convergence and Efficiency Diagnostics
aov.w

Repeated Measures Analysis of Variance (Within-Subject ANOVA)
blimp.plot

Blimp Trace Plots and Posterior Distribution Plots
center

Centering Predictor Variables in Single-Level and Multilevel Data
ci.mean

Confidence Interval for the Arithmetic Mean and Median
chr.grep

Multiple Pattern Matching
chr.gsub

Multiple Pattern Matching And Replacements
chr.omit

Omit Strings
check.resid

Residual Diagnostics
chr.color

Colored and Styled Terminal Output Text
check.outlier

Statistical Measures for Leverage, Distance, and Influence
ci.mean.diff

Confidence Interval for the Difference in Arithmetic Means
check.collin

Collinearity Diagnostics
chr.trim

Trim Whitespace from String
coding

Coding Categorical Variables
clear

Clear Console in RStudio
ci.prop

Confidence Interval for Proportions
cor.matrix

Correlation Matrix
crosstab

Cross Tabulation
ci.mean.w

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

Confidence Interval for the Variance and Standard Deviation
cluster.scores

Cluster Scores
ci.prop.diff

Confidence Interval for the Difference in Proportions
cohens.d

Cohen's d
dominance

Dominance Analysis
df.sort

Data Frame Sorting
df.rename

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

Descriptive Statistics
df.rbind

Combine Data Frames by Rows, Filling in Missing Columns
df.duplicated

Extract Duplicated or Unique Rows
df.merge

Merge Multiple Data Frames
df.subset

Subsetting Data Frames
dominance.manual

Dominance Analysis, Manually Inputting a Correlation Matrix
df.move

Move Variable(s) in a Data Frame
item.omega

Coefficient Omega, Hierarchical Omega, and Categorical Omega
item.reverse

Reverse Code Scale Item
indirect

Confidence Intervals for the Indirect Effect
item.cfa

Confirmatory Factor Analysis
item.alpha

Coefficient Alpha and Item Statistics
effsize

Effect Sizes for Categorical Variables
freq

Frequency Table
item.scores

Scale Scores
lagged

Create Lagged Variables
item.invar

Between-Group and Longitudinal Measurement Invariance Evaluation
libraries

Load and Attach Multiple Packages
mplus.lca

Mplus Model Specification for Latent Class Analysis
mplus.bayes

Mplus Summary Measures, Convergence and Efficiency Diagnostics
mplus.run

Run Mplus Models
mplus.plot

Plot Mplus GH5 File
mplus.update

Mplus Input Updating
multilevel.cfa

Multilevel Confirmatory Factor Analysis
mplus

Create, Run, and Print Mplus Models
multilevel.cor

Within-Group and Between-Group Correlation Matrix
mplus.print

Print Mplus Output
multilevel.r2

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

Auxiliary Variables Analysis
multilevel.indirect

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

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

Multilevel Composite Reliability
multilevel.invar

Cross-Level Measurement Invariance Evaluation
na.coverage

Variance-Covariance Coverage
multilevel.r2.manual

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

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

Multilevel Descriptive Statistics for Two-Level and Three-Level Data
print.misty.object

Print misty.object object
na.test

Missing Completely at Random (MCAR) Test
na.indicator

Missing Data Indicator Matrix
read.dta

Read Stata DTA File
read.mplus

Read Mplus Data File and Variable Names
na.pattern

Missing Data Pattern
read.xlsx

Read Excel File
na.descript

Descriptive Statistics for Missing Data in Single-Level, Two-Level and Three-Level Data
read.sav

Read SPSS File
na.prop

Proportion of Missing Data for Each Case
result.lca

Summary Result Table and Grouped Bar Charts for Latent Class Analysis Estimated in Mplus
rwg.lindell

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

Set Working Directory to the Source File Location
robust.coef

Unstandardized Coefficients with Heteroscedasticity-Consistent Standard Errors
rec

Recode Variable
script.copy

Save Copy of the Current Script in RStudio
script.open

Open, Close and Save R Script in RStudio
restart

Restart R Session
size.cor

Sample Size Determination for Testing Pearson's Correlation Coefficient
script.new

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

Sample Size Determination for Testing Proportions
test.welch

Welch's Test
test.levene

Levene's Test for Homogeneity of Variance
test.t

t-Test
skewness

Skewness and Kurtosis
write.dta

Write Stata DTA File
std.coef

Standardized Coefficients
test.z

z-Test
size.mean

Sample Size Determination for Testing Arithmetic Means
write.mplus

Write Mplus Data File
write.sav

Write SPSS File
write.xlsx

Write Excel File
write.result

Write Results of a misty Object into an Excel file