Skip to content

Commit 7ff440e

Browse files
authored
Update README.md
1 parent a881496 commit 7ff440e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@ setwd("C:/data") # change working dir
2525

2626
## Using simmsm command to generate data in the wording directory
2727
```R
28-
simmsm(subjects = 2500, tpoints = 10, psi = 0.3, n = 5)
28+
simmsm(subjects = 2500, tpoints = 10, psi = 0.3, n = 1000)
29+
# 1000 datasets
30+
# 2500 subjects in each datasets
31+
# Each subject followed upto 10 time-points (say, months)
32+
# Causal effect (log-odds) is 0.3
2933
```
3034
| **Parameter** | **Description** |
3135
|----------------|------------|
32-
| *subjects* | Number of Subjects in each simulated dataset: |
33-
| *tpoints* | Maximum number of time-points each subjects are followed: |
34-
| *psi* | Causal effect parameter for Marginal Structural Model: |
35-
| *n* | Number of simulated datasets an user wants to generate: |
36+
| *subjects* | Number of Subjects in each simulated dataset |
37+
| *tpoints* | Maximum number of time-points each subjects are followed |
38+
| *psi* | Causal effect parameter for Marginal Structural Model |
39+
| *n* | Number of simulated datasets an user wants to generate |
3640

3741
### Author
3842
* Ehsan Karim :octocat: (R porting from SAS)

0 commit comments

Comments
 (0)