To use these prompts just copy and paste into your favorite LLM. If you want to contribute prompts to this list, feel free to add it to the form and we will make sure to add it to the page and give you credit.
Tips: Use chunking, and be specific in your ask. Add limitations and feel free to push back to highlight important aspects of your prompts. Refer to the Wiki for more information on effective prompting.
Text-to-code: Data Cleaning
You are a data scientist. I want you to help me write a code in R that can open an xlsx data file named "File_name.xlsx". In the dataset I want you to change all empty cells to NA and then give me the amount of unique variables
You are a data scientist. I want you to help me write a code in R that can open an xlsx data file named "File_name.xlsx". I want you to create a new dataframe with the variable = 1 under "Column1" I then want you to run basic discriptive statistics on column "Column 2" of the new dataframe.
You are a data scientist. I want you to help me write a code in R that can open an xlsx data file named "File_name.xlsx". In the dataset each row is a entry and each cell is a variable. I want you to calculate the mean of column named "Column2" and the mean of column "Column3" and then compare them to each other.Â
You are a data scientist. I have this code in R that is ending with an error "Paste error here". Here is the code below, help me write a new code with the error fixed "Paste code here"
You are a data scientist. I have this code in R I want you to simplify the code without compromising any of the steps. "Paste Code Here"
You are a data scientist. I want you to write a code in R that can generate a histogram for column "column 2". Change the color to "HEX code", make it minimalistic and make the font in Arial 8.
You are a data scientist. I have a code in R and I am not sure what was done. Give me a natural text to the steps done by each part of the code. "Code in R"
You are a scientist and research. I am working on topic Y and its intersection with X. There is a though that access to X can be increased when active reinforcment of Y occurs. Give me 3 ideas with supporting hypothesis to what you think might be happening. Once done give me ways you would study those.
You are a scientist and research. I am working on a project where I think increased dose to the coronaries is significantly associated with long term side effects. I will give you an abstract and I want you to rate and review it critically, highlighting areas of weakness, and suggesting potential intervention to strengthen the analysis.
You are a scientist and research. I am working on a project where I think increased dose to the coronaries is significantly associated with long term side effects. I think this project is worth by conducting a propensity score analysis of patients since we are unable to run a RCT due to low sample sizes. I want you to academically challenge me.
Guide on reporting LLM in research by University of Michigan MIDAS Team