Find the right pharmaverse or admiral function for an ADaM derivation
AI suggests which admiral or pharmaverse functions fit a derivation and sketches a call. It can name functions that do not exist, so you confirm each against the package documentation.
Untested ideaMedium risk
Evidence
Untested idea. Plausible and possibly useful for beginners, but we found no evaluation and did not open the package documentation. AI-242 mentions made-up functions in SAS-to-R translation, not for admiral. Prompt not run.
Steps
- Describe the derivation without study data.
- Ask for candidate functions and argument names.
- Look each up in the package reference.
- Run on pharmaverseadam or pharmaversesdtm test data.
- Compare with your spec.
Prompt
This is the prompt, typed out. No assistant reply is shown.
You
For the ADaM derivation below, suggest which admiral functions could do it and why. For each function give the package, the arguments you expect to use and what you are unsure about. If you are not certain a function exists, write NOT SURE. Do not write more than a sketch; I will check each name against the documentation.
Rules: use ONLY the input below. Tag anything the input does not state as OPEN QUESTION. Never invent numbers; use placeholders such as xx. Do not claim anything is verified.
INPUT:
[paste input here]
Verify before you use it
- Every function name exists in the installed version.
- Argument names match the reference.
- Code was run on public test data.
- Derivation matches the spec, not only the AI description.
- Package versions are recorded.
How it fails
The AI invents function names or arguments, or uses ones from a different package version.
Data rule: No specs, variable names or derivations from confidential studies. Describe derivations generically.