Author: David Sanchez

  • Additive Models and Model Matrices in R

    Introduction: In this blog post, we’ll explore additive models and model matrices using the ashina dataset from the ISwR package in R. We’ll set up an additive model for the data and compare the results with those obtained from t-tests. Additionally, we’ll generate model matrices for different model specifications and discuss their implications. Part 1:…

  • Exploring Predictors of Lung Function and Fetal Growth: An R Analysis

    In this post, we’ll be diving into two fascinating datasets – cystfibr and secher – to understand what factors influence lung function in cystic fibrosis patients and fetal growth, respectively. We’ll be using R to conduct our statistical analyses, including ANOVA, linear regression, and log-transformations. Let’s dive in! Predictors of Maximal Expiratory Flow in Cystic…

  • Exploring Data with Tables in R

    In the realm of data analysis, the creation and interpretation of tables are foundational skills. Through two distinct assignments, we delve into generating simple tables and contingency tables using R, illustrating the power of basic data manipulation and analysis. 1. Simple Table Creation Given a dataset with countries, ages, salaries, and purchase decisions, our first…

  • Analyzing the Effects of Drug on Stress Reaction Times and Cognitive Development

    Introduction: In this blog post, we will explore two separate datasets to gain insights into the effects of a drug on stress reaction times and the impact of different training methods on cognitive development in children. We will employ Analysis of Variance (ANOVA) and t-tests using R to analyze the data and draw meaningful conclusions.…

  • Adv Stats #6

    Unraveling the Mysteries of Regression Analysis with R Welcome to our deep dive into regression analysis, where we leverage R to explore and interpret complex data relationships. Through several case studies, we’ll illustrate how simple and multiple regression models can be applied to real-world scenarios, providing actionable insights and predictions. Understanding Simple Linear Regression Simple…

  • Navigating the World of Statistics: A Practical Approach

    Statistics is a field that touches nearly every aspect of our lives, from the decisions made by businesses to the research conducted in various scientific fields. Today, we’re diving deep into some practical applications of statistical concepts through an assignment that covers a range of topics, including data analysis, sample size, population proportion, and probability…

  • Adv Stats #5

    Unveiling the Mysteries of Statistical Analysis: Hypothesis Testing and Correlation Welcome to our exploration of statistical analysis where we demystify hypothesis testing and correlation analysis using real-world examples. Let’s dive into a scenario that many businesses might face, and walk through the steps of statistical decision-making. Question 1: Ensuring Machine Precision in Cookie Production The…

  • Adv Stats Post #4

    In the realm of statistics, understanding probabilities can illuminate the outcomes of various scenarios, from weather forecasts affecting special events to the success rates of medical procedures. Today, we delve into two intriguing examples that showcase the application of probability and Bayes’ Theorem, offering insights into how we interpret and react to predictions in our…

  • Adv Stats #3

    Here is the results of the two sets. This was a very interesting assignment, love to see where this will go next. Set #1: 10, 2, 3, 2, 4, 2, 5 Set #2: 20, 12, 13, 12, 14, 12, 15 Comparison and Discussion:

  • AdvStats Blog #2

    Today, I explored a fundamental concept in statistics and programming: calculating the mean of a dataset. This exploration not only reinforced my understanding of basic statistical measures but also allowed me to practice writing and applying functions in a programming environment. The Dataset My journey began with a dataset, intriguing in its simplicity yet rich…