Skip to content

Commit 9d75a49

Browse files
committed
Update manual to remove reference to stats clinic
1 parent 68aa887 commit 9d75a49

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

manual.Rnw

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ The goals of statistical methods could be summarised as follows:
5858

5959
R Commander is an add-on to R, designed to make statistical analysis in R more accessible to those unfamiliar with R programming. Some understanding of basic statistical tests is required before being able to use R Commander effectively, as it is easy to make mistakes if you don't know precisely what you're doing.
6060

61-
The Bioinformatics Core at Cambridge Research Institute employs statisticians to help researchers at the institute with the statistical aspects of their studies. Whilst we are always happy to do an analysis for you, we are also happy to support you if you choose to run the analysis yourself. Please get in touch if you have any questions or require our support, or come along to our Wednesday afternoon Statistics Clinic.
6261

63-
E-mail address:
64-
{\tt cristatsclinic@cruk.cam.ac.uk}
6562

6663
\section{Thinking about your analysis}
6764

@@ -84,7 +81,7 @@ The type of data you will get will determine which analyses will be most suitabl
8481

8582
\textbf{Categorical} observations are allocations of individuals to one of two or more classes or categories. These categories may be \textbf{nominal} or \textbf{ordinal} (some natural ordering of the categories).
8683

87-
Examples of \textbf{nominal} data are: Sex - Male/female; Disease status – diseased/non-diseased; Treatment status – treated/non-treated.
84+
Examples of \textbf{nominal} data are: Sex - Male/female; Disease status – diseased/non-diseased; Treatment status – treated/non-treated.
8885

8986
Examples of \textbf{ordinal} data are: Smoking – non-smoker/ex- smoker/light smoker/heavy smoker; Stage of breast cancer – 0/1/2/3/4; socioeconomic status – low/middle/high.
9087

@@ -806,9 +803,6 @@ This is not a significant result (p$>0.05$), so there is \textbf{no evidence of
806803
\subsubsection{Paired two-sample t-test}
807804

808805

809-
810-
811-
812806
<<echo=FALSE,results='asis'>>=
813807
library(xtable)
814808
cell <- read.csv("data//Paired two-sample t-test.csv")
@@ -818,7 +812,6 @@ xtable(cell,caption="Cellularity at two sites of disesase",label="cellularity")
818812

819813
\textbf{Example}: 20 patients with advanced cancer were studied using MRI imaging. Cellularity was measured for each individual patient by estimating water movement. We want to know whether there is a significant difference in the cellularity between two sites in the body; A and B. The data are shown in Table \ref{cellularity}. We want to test the \textbf{null hypothesis} that the mean cellularity at site A is equal to the mean cellularity at site B. This is like saying:\\
820814

821-
822815
Mean cellularity at site A = mean cellularity at site B\\
823816

824817
Essentially, this two-sample test corresponds to a formal comparison of the \textbf{differences between each pair} of cellularities with 0 (so a one-sample t-test). We could reformulate our null hypothesis as:\\
@@ -862,7 +855,6 @@ Click on the View data set button to check if the Difference column has been add
862855
\label{datasetWithDifferences}
863856
\end{figure}
864857

865-
866858
In the calculation of the difference between Site A and Site B column, we need to choose either one as our baseline; this will simply determine whether we calculate A-B or B-A. The results of the paired t-test will be the same either way, but summary statistics such as the mean and confidence intervals will be either positive or negative depending on which column you choose as your baseline, and similarly the histogram with be either on the positive or negative scale (the overall shape will be identical but will be flipped on the vertical axis). In this example, the A column was used as the baseline, so the difference column calculated represents the calculation B-A. \newpage
867859

868860

@@ -892,7 +884,6 @@ hist(cell$Difference,col="grey",breaks=5,main="",xlab="Difference",ylab="frequen
892884
\caption{Histogram with user-defined bins}
893885
\label{histWithMoreBins}
894886
\end{figure}
895-
896887
\textit{Note that the histogram will be flipped on the vertical axis if the difference is calculated as B - A rather than A - B, but this won't impact the end result of the test.}\newpage
897888

898889

@@ -914,7 +905,6 @@ t_{n-1} = t_{19} = \frac{\bar{X}_{A-B}}{s.e(\bar{X}_{A-B})}
914905
\end{equation}
915906

916907
Under the null hypothesis that there is no difference in the cellularities between the two sites of disease, we can see that the probability of observing such a large t-statistic is very small: the p-value is 0.0017. \\
917-
918908
This is a significant result (p $<$ 0.05), so there is \textbf{evidence of a difference} in the cellularity between Site A and Site B in patients with advanced cancer.
919909
\\
920910
\subsection{What to do if the normality assumption is unreasonable?}
@@ -1203,4 +1193,3 @@ In this case, there is no evidence of an association between treatment group and
12031193

12041194
\end{document}
12051195

1206-

manual.pdf

-3.55 KB
Binary file not shown.

0 commit comments

Comments
 (0)