Learn R Programming

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

smovie

Some Movies to Illustrate Concepts in Statistics

What does smovie do?

The smovie package provides movies to help students to understand statistical concepts. The rpanel package is used to create interactive plots that move to illustrate key statistical ideas and methods. The movies cover the topics of probability distributions; sampling distributions of the mean (central limit theorem), the median, the maximum (extremal types theorem) and the (Fisher transformation of the) correlation coefficient; simple linear regression; hypothesis testing.

An example

The function wws produces a movie to visualise the Wald, Wilks and score likelihood-based test statistics, for a model with a scalar unknown parameter. The user can change the value of the parameter under a simple null hypothesis and observe the effect on the test statistics. The following code uses the log-likelihood from a binomial experiment and considers the null hypothesis that the success probability θ is equal to θ0. The user may specify their own log-likelihood.

wws(theta0 = 0.5)

Installation

To get the current released version from CRAN:

install.packages("smovie")

Note that rpanel requires the Tcl extension BWidget. BWidget is included in the R installers for Windows and macOS. For other platforms please see Section 1.1.7 of Writing R Extensions for installation advice.

Vignettes

See vignette("smovie-vignette", package = "smovie") for an overview of the package.

Copy Link

Version

Install

install.packages('smovie')

Monthly Downloads

180

Version

1.1.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Northrop

Last Published

January 8th, 2020

Functions in smovie (1.1.2)

movies

Main menu for smovie movies
mean_vs_median

Sample mean vs sample median
discrete

Univariate Discrete Distributions: p.m.f and c.d.f.
ett

Extremal Types Theorem (ETT)
lev_inf

Leverage and influence in simple linear regression movie
FPearson

Fisher's transformation of the Pearson product moment correlation coefficient
cltq

Central Limit Theorem (CLT) for sample quantiles
correlation

Sampling distribution of the Pearson correlation coefficient movie
clt

Central Limit Theorem (CLT)
continuous

Univariate Continuous Distributions: p.d.f and c.d.f.
wws

Wald, Wilks and Score tests
smovie

smovie: some movies to illustrate concepts in statistics
shypo

Testing simple hypotheses