knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(MATH4753.0231)

The MATH4753.0231 Package

This package contains several functions accumulated over the time spent completing the applied statistics course, MATH4753. It contains two sets of data as well as 8 functions. Of the 8 functions included, 6 return plots of various data, one returns a probability when given a negative binomial distribution, and one returns the working directory.

Data Sets

ddt

head(ddt)

fire

head(fire)

Non-Graphical Functions

mygetwd()

Returns the working directory.

mygetwd()

mynbin()

Returns the probability of the number of successes based on a negative binomial distribution.

mynbin(10, 3, 0.4)

Graphical Functions

myboot2()

Returns a histogram of the distribution of the sampled data from the population. On the histogram is a labeled confidence interval.

myboot2(iter = 10000, x = ddt$DDT, fun = "var", alpha = 0.2)

myclt()

Returns a plot of the shape of the sample distribution taken randomly from a uniform distribution.

myclt(n = 20, iter = 100000, a = 0, b = 10)

mymaxlikg()

Returns a graphical likelihood of a probability based on a supplied likelihood function.

mymaxlikg(lfun = "log", theta = seq(0,1,length=1000))

myncurve()

Returns a plot and numerical value for the probability of a given number of successes for a normal distribution.

myncurve(10, 4, 3)

scatterhist()

Returns a scatter plot histogram based on two given parameters and their respective labels.

scatterhist(ddt$LENGTH, ddt$WEIGHT, xlab = "Length", ylab = "Weight")

myddt()

Returns a plot of the length vs. the weight of a given species, color coded by river. Also returns the entire data frame, the subsetted data frame, and a RIVER relative frequency table.

myddt(df = ddt, SPECIES = "CCATFISH")


treyhille/MATH4753.0231 documentation built on May 3, 2022, 8:25 p.m.