shuttle_movie: Challenger Space Shuttle Disaster Movie

Description Usage Arguments Details Value See Also Examples

View source: R/shuttle_movie.R

Description

A movie to illustrate uncertainty in the linear logistic regression curves fitted to the real space shuttle data.

Usage

1
shuttle_movie(n_reps = 1, pos = 1, envir = as.environment(pos))

Arguments

n_reps

An integer scalar. Relevant to shuttle_movie only. The number of flights to simulate for each of the 23 (pre-disaster) temperatures in the real dataset. For example, n_reps = 10 means that we simulate a dataset of size 230.

pos

A numeric integer. Used in calls to assign to make information available across successive frames of a movie. By default, uses the current environment.

envir

An alternative way (to pos) of specifying the environment. See environment.

Details

shuttle_movie produces an animated version of the plot produced by shuttle_sim_plot. Calling 'shuttle_movie' creates a plot containing the real data and the logistic curve fitted to the real data and opens a parameter window containing buttons labelled + and -. Clicking + adds to the plot a new simulated dataset and the logistic curve fitted to this dataset. Clicking - removes the mostly recently added dataset.

Value

Nothing is returned, only the animation is produced.

See Also

movies: general information about the movies.

shuttle_sim and shuttle_sim simulation of fake space shuttle data (from a linear logistic regression model) and plotting these data, respectively.

Examples

1
2
3
4
5
6
7
8
9
# Load package rpanel
# [Use install.packages("rpanel") if necessary]
library(rpanel)

# Movie based on datasets of size 23
shuttle_movie()

# Movie based on datasets of size 230
shuttle_movie(n_reps = 10)

paulnorthrop/stat1004 documentation built on Nov. 17, 2019, 3:49 a.m.