knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(PROJ1.STATS)
This function returns a sample size 'n' of black and white marbles drawn without replacement.
PROJ1.STATS::marbles(4, 6, 10)
This function takes a list of sample values and creates a histogram from the object parameters, as well as a confidence interval.
PROJ1.STATS::myboot2(10000,x=c(1,2,3,4,5),fun="mean",alpha=0.05,xlab="mean",col="Purple",cx=1.5)
This function returns the confidence interval of dataset x.
PROJ1.STATS::myci(rnorm(30,mean=10,sd=12))
This program returns a histogram created from a vector (sm), which contains the sum of each column that is comprised of random deviates from the from the uniform distribution on the interval from min (a) to max (b).
PROJ1.STATS::myclt(20, iter=10000)
This function raises the input 'x' to the power of 2.
PROJ1.STATS::myf(27)
This function produces a plot of the maximum liklihood probability p for the number of successes y in the amount of trials.
PROJ1.STATS::mymaxlik(x=c(3, 3, 4, 3, 4, 5, 5, 4),param=seq(0,1,length=20),lfun=function(x, param)dbinom(x,prob=param,size=10),xlab=expression("p"),main="Binomial",cex.main=2)
This function produces a normal curve with the input parameters, the shaded area representing probability, and the probability value.
PROJ1.STATS::myncurve(2, 0, 1)
This function returns the $s^2$ value of a dataset, particularly of the z values. It is demonstrated with the 'fire' data.
ob = PROJ1.STATS::fire obj=ob$DAMAGE z=(obj-mean(obj))/sd(obj) PROJ1.STATS::s2value(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.