[IPSUR-commits] r136 - pkg/IPSUR/inst/doc
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Jan 9 21:20:42 CET 2010
Author: gkerns
Date: 2010-01-09 21:20:42 +0100 (Sat, 09 Jan 2010)
New Revision: 136
Modified:
pkg/IPSUR/inst/doc/IPSUR.Rnw
Log:
small changes
Modified: pkg/IPSUR/inst/doc/IPSUR.Rnw
===================================================================
--- pkg/IPSUR/inst/doc/IPSUR.Rnw 2010-01-09 20:14:59 UTC (rev 135)
+++ pkg/IPSUR/inst/doc/IPSUR.Rnw 2010-01-09 20:20:42 UTC (rev 136)
@@ -11529,8 +11529,6 @@
prop.test(rbind(tab), conf.level = 0.95, correct = FALSE)
@
-djlsd
-
<<>>=
A <- as.data.frame(Titanic)
library(reshape)
@@ -11545,7 +11543,8 @@
\subsection{How to do it with \textsf{R}}
-I am thinking about sigma.test() and var.test() here.
+I am thinking about sigma.test in the TeachingDemos package and var.test
+in base R here.
\section{Fitting Distributions\label{sec:Fitting-Distributions}}
@@ -11558,9 +11557,10 @@
\section{Sample Size and Margin of Error\label{sec:Sample-Size-and-MOE}}
-Sections BLANK through BLANK all began the same way: we were given
-the sample size $n$ and the confidence coefficient $1-\alpha$, and
-our task was to find a margin of error $E$ so that \[
+Sections \ref{sec:Confidence-Intervals-for-Means} through \ref{sec:Confidence-Intervals-for-Variances}
+all began the same way: we were given the sample size $n$ and the
+confidence coefficient $1-\alpha$, and our task was to find a margin
+of error $E$ so that \[
\hat{\theta}\pm E\mbox{ is a }100(1-\alpha)\%\mbox{ confidence interval for }\theta.\]
Some examples we saw were:
\begin{itemize}
@@ -11568,11 +11568,11 @@
\item $E=t_{\alpha/2}(\mathtt{df}=n+m-2)S_{p}\sqrt{n^{-1}+m^{-1}}$, in
the two-sample pooled $t$-interval.
\end{itemize}
-We already know (see Equation BLANK) that $E$ decreases as $n$ increases.
-Now we would like to use this information to our advantage: suppose
-that we have a fixed margin of error $E,$ say $E=3$, and we want
-a $100(1-\alpha)\%$ confidence interval for $\mu$. The question
-is: how big does $n$ have to be?
+We already know (we can see in the formulas above) that $E$ decreases
+as $n$ increases. Now we would like to use this information to our
+advantage: suppose that we have a fixed margin of error $E,$ say
+$E=3$, and we want a $100(1-\alpha)\%$ confidence interval for $\mu$.
+The question is: how big does $n$ have to be?
For the case of a population mean the answer is easy: we set up an
equation and solve for $n$.
@@ -11628,20 +11628,13 @@
\subsection{How to do it with \textsf{R}}
-I am thinking about
+I am thinking about power.t.test, power.prop.test, power.anova.test,
+and I am also thinking about replicate.
-power.t.test
-power.prop.test
-
-power.anova.test
-
-also thinking about replicate
-
-
\section{Other Topics\label{sec:Other-Topics}}
-Mention mle from the stats4 package
+Mention mle from the stats4 package.
\newpage{}
More information about the IPSUR-commits
mailing list