Skip to content

Commit 09d7f59

Browse files
committed
Removing the 2 lines which is not executing the code for comparision packages.
1 parent 9de996a commit 09d7f59

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

templates/RvsSAS_template.qmd

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
---
22
title: "R vs SAS [Name of Method]"
3-
execute:
4-
eval: false
53
---
64

7-
8-
95
# R vs SAS \[Name of Method\]
106

117
## Introduction
@@ -14,8 +10,6 @@ Provide a brief overview of the analysis, its purpose, and its applications.
1410

1511
**Example:** This section compares the implementation of Poisson Regression in R and SAS. Poisson regression is used to model count data and contingency tables. It's particularly useful for modeling the number of events occurring within a fixed period of time or space.
1612

17-
18-
1913
## General Comparison Table
2014

2115
The following table provides an overview of the support and results comparability between R and SAS for the new analysis point.
@@ -30,8 +24,6 @@ The following table provides an overview of the support and results comparabilit
3024
| [Scenario 2: Advanced Feature] | Example: [Yes](../R/example_link) | Example: [Yes](../SAS/example_link) | Example 3: Partial | Special considerations for data structure or assumptions |
3125
+-----------------------------------+-----------------------------------+-------------------------------------+--------------------+----------------------------------------------------------+
3226

33-
34-
3527
## Prerequisites: R Packages
3628

3729
List the R packages required for this analysis. Include a brief description if necessary.
@@ -42,11 +34,9 @@ library() # Call what packages are needed
4234
library()
4335
```
4436

45-
46-
4737
## Example Data
4838

49-
Provide an example of the dataset being used. For simulated / dummy datasets please provide some context on how you construct the dataset and its relevance to the methodology. For real data please provide the code for how these data can be accessed and a reference that describes the data source.
39+
Provide an example of the dataset being used. For simulated / dummy datasets please provide some context on how you construct the dataset and its relevance to the methodology. For real data please provide the code for how these data can be accessed and a reference that describes the data source.
5040

5141
```{r}
5242
# Simulate an example dataset for Poisson Regression
@@ -75,8 +65,6 @@ proc print data=example_data(obs=10);
7565
run;
7666
```
7767

78-
79-
8068
## Analysis Scenarios
8169

8270
### Scenario 1: Basic Functionality
@@ -95,7 +83,6 @@ run;
9583

9684
Describe key options utilized in the code, along with a screenshot showcasing the output.
9785

98-
9986
#### R Code Example
10087

10188
```{r}
@@ -118,12 +105,9 @@ Provide a detailed comparison of the results obtained from both SAS and R. Highl
118105
| Coefficient Estimate for Predictor | 0.1 | 0.1 | Yes | |
119106
| p-value | 0.05 | 0.05 | Yes | |
120107

121-
122-
123108
### Scenario 2: Advanced Feature
124109

125-
Provide a detailed description of the scenario.
126-
**Example:** Address specific advanced features or configurations that may be necessary for more complex analyses.
110+
Provide a detailed description of the scenario. **Example:** Address specific advanced features or configurations that may be necessary for more complex analyses.
127111

128112
#### SAS Code Example
129113

@@ -159,22 +143,16 @@ Provide a detailed comparison of the results obtained from both SAS and R. Highl
159143
| Coefficient Estimate for Predictor | 0.1 | 0.1 | Yes | |
160144
| p-value | 0.05 | 0.05 | Yes | |
161145

162-
163-
164146
## Special Considerations
165147

166148
Address any additional features or settings that need to be considered. This might include specific configuration settings, handling of special cases, or performance considerations.
167149

168150
**Example:** For handling overdispersion in Poisson Regression, SAS provides the `scale` option in PROC GENMOD, while in R, one may have to switch to a quasi-Poisson family or use negative binomial regression.
169151

170-
171-
172152
## Summary and Recommendation
173153

174154
Summarize the key findings from the analysis. Highlight any major differences observed and offer recommendations on which software/packages to use. Provide guidance on how to interpret the differences between the results obtained from various software of packages.
175155

176-
177-
178156
## Troubleshooting and Edge Cases
179157

180158
List potential issues that users may encounter and propose solutions or troubleshooting steps.
@@ -185,8 +163,6 @@ List potential issues that users may encounter and propose solutions or troubles
185163

186164
- **Solution:** Check for multicollinearity among predictors, scale the predictors, or switch to a more appropriate model family.
187165

188-
189-
190166
## Additional References
191167

192168
Provide references and additional reading materials for both R and SAS documentation related to the analysis.
@@ -199,14 +175,10 @@ Provide references and additional reading materials for both R and SAS documenta
199175

200176
- `PROC GENMOD`: <https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_genmod_overview.htm>
201177

202-
203-
204178
## Appendix (Optional)
205179

206180
Include any additional information, extended examples, or advanced topics that may be helpful for expert users.
207181

208-
209-
210182
This template is designed to be comprehensive and flexible, able to accommodate multiple scenarios and diverse datasets. It ensures that each section clearly communicates the necessary information and comparisons, making it easier for users to understand and apply the analyses appropriately across both R and SAS platforms.
211183

212184
::: {.callout-note collapse="true" title="Session Info"}

0 commit comments

Comments
 (0)