Incomplete sheet
This sheet is incomplete and could use some attention. Please submit code snippet suggestions as an issue or PR here.
formula¶
Create¶
| Action | Code | Details |
|---|---|---|
| Intercept only |
|
|
| With intercept and single variable |
|
|
| Without intercept, and single variable |
|
|
| With all variables |
|
|
| No response variable |
|
|
| From string |
|
|
| From string |
|
Not recommended |
Test¶
| Action | Code | Details |
|---|---|---|
| Is formula |
|
|
| Is formula or subclass |
|
|
| Formulas are equal |
|
|
| Formulas are equal |
|
|
| Has response |
|
|
| Has intercept |
|
Surely there is an easier way |
Extract¶
| Action | Code | Details |
|---|---|---|
| Variable names |
|
|
| Left-hand side variable names |
|
|
| Right-hand side variable names |
|
|
| Environment |
|
Derive¶
| Action | Code | Details |
|---|---|---|
| Add a term |
|
|
| Add terms |
|
|
| Set response |
|
|
| Set terms |
|
|
| Remove response |
|
|
| Remove response |
|
|
| Remove intercept |
|
|
| Remove environment |
|
Useful for formula serialization to prevent the entire workspace from being serialized along with it |
Evaluate¶
| Action | Code | Details |
|---|---|---|
| Evaluate a formula with known coefficients |
|
Convert¶
| Action | Code | Details |
|---|---|---|
| String |
|
|
| String array |
|