Useful tips for everyday
How to plot Kaplan Meier survival curves in R? Here is the code and output for the Kaplan-Meier curves in base R graphics. The base…
How to use LME for repeated measures ANOVA? I’m trying to use lme from the nlme package to replicate results from aov for repeated measures…
Can a PCA be performed on an un-normalized variable? It is definite that the scale of variances in these variables will be large. Performing PCA…
When to use difference in differences ( did ) regression? In this module, we cover the popular quasi- or non-experimental method of Difference-in- Differences (DID)…
How do I make a PDF smoother? If the document is not locked from editing, do this in Acrobat X:Ctrl D or File > PropertiesClick…
Why do we study Bernoulli distribution? In experiments and clinical trials, the Bernoulli distribution is sometimes used to model a single individual experiencing an event…
How do you find the standard deviation when given the mean and sample size? Here’s how to calculate sample standard deviation: Step 1: Calculate the…
How do you analyze a precision-recall curve? The precision-recall curve shows the tradeoff between precision and recall for different threshold. A high area under the…
What are the assumptions for the Z test of two means? Assumptions for the z-test of two means: The samples from each population must be…
How do you compare two-sample sizes? One way to compare the two different size data sets is to divide the large set into an N…