Skip to content

Commit 68c9871

Browse files
20250425 - fix error
1 parent b8c39d1 commit 68c9871

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

regression.Rmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,11 @@ robcov(ols(
915915
data = mydata,
916916
x = TRUE,
917917
y = TRUE))
918+
```
919+
920+
Use "cluster" variable to account for nested data within-subject:
918921

922+
```{r, eval = FALSE}
919923
robcov(ols(
920924
t_ext ~ m_ext + age,
921925
data = mydata,
@@ -924,6 +928,7 @@ robcov(ols(
924928
cluster = mydata$tcid) #account for nested data within subject
925929
```
926930

931+
927932
### 4. Errors are independent
928933

929934
Independent errors means that the errors are uncorrelated with each other.

0 commit comments

Comments
 (0)