Back to Course

FoSSA Français

0% Complete
0/0 Steps
  1. Information sur le cours

    Rencontrez l'équipe enseignante
  2. Jeu de données du cours 1
  3. Jeu de données du cours 2
  4. MODULE A1: INTRODUCTION AUX STATISTIQUES AVEC R ET STATA
    A1.1 Qu'est-ce que les Statistiques?
  5. A1.2.1a Introduction à Stata
  6. A1.2.2b: Introduction à R
  7. A1.2.2c: Introduction to SPSS
  8. A1.3: Statistiques Descriptives
  9. A1.4: Estimations et Intervalles de Confiance
  10. A1.5: Tests d'Hypothèses
  11. A1.6: Transformation de Variables
  12. Fin du Module A1
    1 Quiz
  13. MODULE A2: CALCULS DE PUISSANCE STATISTIQUE & DE TAILLE D’ÉCHANTILLON
    A2.1 Concepts Clés
  14. A2.2 Calculs de puissance pour une différence de moyennes
  15. A2.3 Calculs de puissance pour une différence de proportions
  16. A2.4 Calcul de taille d’échantillon pour les essais randomisés (RCTs)
  17. A2.5 Calculs de taille d’échantillon pour les études transversales (ou sondages)
  18. A2.6 Calcul de taille d'échantillon pour un devis cas-contrôle
  19. Fin du Module A2
    1 Quiz
  20. MODULE B1: RÉGRESSION LINÉAIRE
    B1.1 Corrélation et Nuages de Points (scatterplots)
  21. B1.2 Différences Entre Moyennes (ANOVA à un facteur)
  22. B1.3 Régression Linéaire Univariée
  23. B1.4 Régression Linéaire Multivariée
  24. B1.5 Sélection de Modèles et Tests F
  25. B1.6 Diagnostics de Régression
  26. Fin du Module B1
    1 Quiz
  27. MODULE B2: COMPARAISONS MULTIPLES & MESURES RÉPÉTÉES
    B2.1 ANOVA Approfondie— Tests Post-Hoc
  28. B2.2 Correction pour Comparaisons Multiples
  29. B2.3 ANOVA à deux facteurs (Two-way ANOVA)
  30. B2.4 Mesures Répétées et Test T Apparié
  31. B2.5 ANOVA pour Mesures Répétées
  32. Fin du Module B2
    1 Quiz
  33. MODULE B3: MÉTHODES NON-PARAMETRIC
    B3.1 Hypothèses des Tests Paramétriques
  34. B3.2 Test U de Mann-Whitney
  35. B3.3 Test de Kruskal-Wallis
  36. B3.4 Test des rangs signés de Wilcoxon
  37. B3.5 Test de Friedman
  38. B3.6 Corrélation des Rangs de Spearman
  39. Fin du Module B3
    1 Quiz
  40. MODULE C1: DONNÉES BINAIRES & RÉGRESSION LOGISTIQUE
    C1.1 Introduction à la prévalence, au Risque, aux Cotes (Odds) et aux Taux
  41. C1.2 Le Test du Chi Carré & le Test de Tendance
  42. C1.3 Régression Logistique Univariée
  43. C1.4 Régression Logistique Multivariée
  44. Fin du Module C1
    1 Quiz
  45. MODULE C2: DONNÉES DE SURVIE
    C2.1 Introduction aux Données de Survie
  46. C2.2 Fonction de Survie de Kaplan-Meier & Test du Log-Rank
  47. C2.3 Régression de Cox à Risque Proportionnel
  48. C2.4 Régression de Poisson
  49. Fin du Module C2
    1 Quiz
Lesson 13 of 49
In Progress

A2.1 Concepts Clés

Learning Outcomes

By the end of this session, students will be able to:

  • Continue practicing basic software commands
  • Learn how to explore the dataset, identifying the different types of variable stored
  • Calculate the different measures of location and spread
  • Plot frequency distributions and histograms

You can download a copy of the slides here: A2.1 Key Concepts

Video A2.1 Introduction to Power and Sample Size Calculation (11 minutes)

A2.1 PRACTICAL: R

The power package

We can estimate sample size and power using the R package ‘pwr’. First you need to install the package and load the library:

install.packages(“pwr”)

library(“pwr”)

Once this package is installed, we can start calculating our needed sample size to test hypotheses or we can estimate the amount of power a study had to detect a difference is one existed. The next sections will show you how to do this.

Look at the help file for the function pwr.t.test. What is the default value for significance level? 

What information do you need to conduct a sample size estimate for difference between means? 

Answer

The default value for significance level (denoted as ‘sig.level‘) in the function is 0.05. This is indicated by sig.level=0.05, and can be changed by specifying a different number in the function. So you can work out the sample size you would need for different significance levels.

To conduct a sample size estimate between means you need the power and alpha values you have decided on, the estimated mean of each group in the population, or the estimated difference between groups in the population, and the estimated population standard deviation.

A2.1 PRACTICAL: Stata

The power command

Calculations for power and sample size in Stata can be performed using the power command. If you look at the help file, you will see that you can use this command to compute a sample size, the power or an effect size. You do not need to have a data set loaded.

Look at the setup of the power command:

power method …, n(numlist) [power_options …]

You need to choose the method you are calculating a power estimate for. To do this, ask yourself the following questions: do you have 1 sample, 2 independent samples or 2 paired samples? Additionally, do you want to compare means from continuous outcomes or proportions from binary/categorical outcomes? The practical today will explore the power command and the one on Session 28 will familiarise you with some of the other options of this command.

Question A2.1: What are Stata’s default values for power and significance level in the power command? Can you see how to change them?

Answer

The default is for 80% power and a 5% significance level (denoted as ‘alpha’). You can change these using the options power() and alpha().

A2.1 PRACTICAL: SPSS

Calculations for power and sample size in SPSS are performed using the ‘Power Analysis’ option under the ‘Analyze’ menu.

Take some time to have a look through the different test types which you can estimate power and sample size for.

You need to choose the method you are calculating a power estimate for. To do this, ask yourself the following questions: do you have 1 sample, 2 independent samples or 2 paired samples? Additionally, do you want to compare means from continuous outcomes or proportions from binary/categorical outcomes?

Take some time to open some of the power analysis tests in SPSS and have a look through them.

What is the default value for significance level? 

What information do you need to conduct a sample size estimate for difference between means? 

Answer

The default value for significance level (denoted as ‘alpha‘) in SPSS is 0.05. This is easily changed in the Power Analysis window once you have selected your test type. So you can work out the sample size you would need for different alpha values.

To conduct a sample size estimate between means you need the power and alpha values you have decided on, the estimated mean of each group in the population, or the estimated difference between groups in the population, and the estimated population standard deviation.

👋 Before you go, leave an anonymous rating & feedback

Average rating 4.4 / 5. Vote count: 21

No votes so far! Be the first to rate this post.

Please share any positive or negative feedback you may have.

Feedback is completely anonymous

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Questions or comments?x