drgregmartin Profile Banner
Greg Martin Profile
Greg Martin

@drgregmartin

Followers
5K
Following
207
Media
935
Statuses
3K

Specialist in Public Health Medicine working for the Health Service Executive in Ireland. Editor-in-Chief of Globalization and Health.

Ireland
Joined March 2009
Don't wanna be here? Send us removal request.
@drgregmartin
Greg Martin
21 hours
Got a research question but no time to survey everyone? Learn how sampling and p-values can help you draw conclusions about the wider population. #statistics #research #Statistics #Research
0
0
1
@drgregmartin
Greg Martin
22 hours
Connect to ChatGPT with chatR! First, grab your API key. Then, select your model in the add-ins. Check out the free cheat sheet for setup! #ChatGPT #chatR #API
0
0
0
@drgregmartin
Greg Martin
5 days
To connect chatR to ChatGPT, you need an API key. Get it from OpenAI after setting up an account and payment method. Use the usethis package in RStudio to input your key and restart. #ChatGPT #RStudio
0
0
0
@drgregmartin
Greg Martin
5 days
With mutually exclusive events, like rolling a 2 or 3, the probability of both happening is zero. Conditional probability: what's the chance of A given B? #Probability #Math
0
0
0
@drgregmartin
Greg Martin
8 days
Code with AI in RStudio! I explore 3 ways to use AI for coding, including the chatR package. Learn how to install it, ask questions, generate code, and cut/paste. Debugging will never be the same! #RCoding #AIcoding
0
0
0
@drgregmartin
Greg Martin
8 days
Probability: A or B happens when events are mutually exclusive, add their probabilities. If not, add and subtract the chance of both happening to avoid double counting. #Probability #Statistics
0
0
1
@drgregmartin
Greg Martin
10 days
Probability? It's just the likelihood of something happening. Think of it from 0 to 1. But what about combining probabilities? Heads AND a 3? Time to make probability intuitive, fun, and useful. #Probability #MathIsFun
0
0
1
@drgregmartin
Greg Martin
10 days
Need code that works? Use language models to generate it, then copy/paste into RStudio. Claude's great for snippets, but for bigger projects, ChatGPT is the way to go. Boom shakalaka! #CodingTips #AI #RStudio
0
0
0
@drgregmartin
Greg Martin
12 days
Gemini is quick but Claude creates better code with fewer errors. Claude will run out of tokens quickly. ChatGPT can write code for creating a density plot. #CodingTips #AItools
0
0
0
@drgregmartin
Greg Martin
12 days
Free healthcare boosts demand. But what affects supply? Healthcare workers, training, infrastructure, tech access, and smart public policy. Key factors, esp. in low-income nations. #Healthcare #PublicHealth
0
0
1
@drgregmartin
Greg Martin
15 days
Healthcare costs are high because of supplier-induced demand and 3rd-party payments. Providers want to sell more, and patients often think more is better. This system incentivizes more healthcare whether needed or not. #HealthcareCosts #HealthInsurance
0
0
2
@drgregmartin
Greg Martin
15 days
Gemini's fast, Claude nails code with few errors, but taps out quickly. ChatGPT? All have their place in the RStudio world. Pick your code-gen AI wisely! #RStudio #CodingTips #AItools
0
0
2
@drgregmartin
Greg Martin
19 days
Healthcare markets don't work like regular markets. Why? Perfect competition and perfect information are assumed for allocative efficiency, but healthcare has barriers to entry and knowledge gaps. #Healthcare #Economics
0
0
2
@drgregmartin
Greg Martin
19 days
Give LLMs context before code. First, use summary & structure functions to tell the model about your data's variables and factors. This helps it suggest analysis and visualizations. #LLMs #DataAnalysis
0
0
1
@drgregmartin
Greg Martin
21 days
Claude is great for coding, but you might hit token limits. ChatGPT doesn't have that problem. If you're doing something short and punchy use Claude. For a big project, maybe use ChatGPT for coding. #AItools #CodingTips
0
0
0
@drgregmartin
Greg Martin
21 days
Will AI replace MPH graduates? AI won't take your job, but someone who knows how to use AI might. Learn to work with AI and make sure you're getting the best out of this technology. #AIinHealthcare #PublicHealth
1
0
0
@drgregmartin
Greg Martin
21 days
Public health needs better communication strategies, especially where health literacy is low and distrust is high. Shouting louder isn't the answer; understanding concerns is. #PublicHealth #Communication
0
0
0
@drgregmartin
Greg Martin
21 days
This notebook is a game-changer for learning! Create as many as you need. It's more user-friendly than dropping PDFs into ChatGPT—it's my absolute favorite. #Learn #Notebook
0
0
0
@drgregmartin
Greg Martin
21 days
Google's NotebookLM: a game-changer for public health research. Upload papers, reports, even YouTube videos, and let AI synthesize insights. Up to 50 sources can be added! #AIinResearch #PublicHealth
0
0
0
@drgregmartin
Greg Martin
21 days
Claude can generate data vis code from a dataset—often perfect, sometimes needs tweaking. Paste errors back in, and it'll try to solve them. Great for Python or other languages too. #DataViz #AIcoding
0
0
0