knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(MATH.4753.113499560)
This package was developed as part of the curriculum for MATH 4753 at the University of Oklahoma. It contains many functions which reflect the r tools and statistical methods that I learned over the course of the semester. It also contains a data set that was included as a proof of concept that it can be packaged
The data set included with this package is called fire.R which contains data about distance from fire stations and damage caused by fires
fire
This function performs the given number of iterations of the specified binomial experiment and outputs a histogram of the results
mybin(100,20,0.7)
This function plots the histogram of the number successes in each iteration of the specified binomial experiment and then plots a normal curve over the histogram for comparison
mycltb(n=5,iter=10000,p=0.3)
This function graphically finds the maximum likelihood estimate for a given function, data, and check intervals
y=c(3,3,4,3,4,5,5,4) logbin=function(x,param) log(dbinom(x,prob=param,size=20)) mymaxlik(x=y,lfun="logbin",param=seq(0,1,length=1000))
This function graphically displays the lower-tail probability of the last argument given the mean and standard deviation of a normal distribution
myncurve(5,2,4)
This function plots a scatter plot of the given x and y variables and displays the histograms associated with both the x and y variables next to the scatter plot
with(fire, scatterhist(DISTANCE,DAMAGE, xlab="DISTANCE"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.