Explore

Find agent skills by outcome

110,967 skills indexed with the new KISS metadata standard.

Showing 24 of 110,967Categories: Openclaw, Coding & Debugging, Data, General
General
PromptBeginner5 minmarkdown

- Setting `mfrow`/`mfcol` resets `cex` to 1 and `mex` to 1. With 2x2 layout

base `cex` is multiplied by 0.83; with 3+ rows/columns

0
General
PromptBeginner5 minmarkdown

> Non-obvious behaviors

gotchas

0
Data
PromptBeginner5 minmarkdown

- Formula interface: `cor.test(~ x + y

data = df)` — note the `~` with no LHS.

0
General
PromptBeginner5 minmarkdown

- **Lognormal**: `meanlog` and `sdlog` are mean/sd of the **log**

not of the distribution itself.

0
General
PromptBeginner5 minmarkdown

- Returns `$estimate`

`$p.value`

0
General
PromptBeginner5 minmarkdown

- **`n` argument in `r*()` functions**: if `length(n) > 1`

uses `length(n)` as the count

0
General
PromptBeginner5 minmarkdown

- **Beta**: `shape1` (alpha)

`shape2` (beta) — no `mean`/`sd` parameterization.

0
General
PromptBeginner5 minmarkdown

- `names = TRUE` by default

adding 0%

0
Data
PromptBeginner5 minmarkdown

- Default kernel: `gaussian`. Range of density extends beyond data range (controlled by `cut`

default 3 bandwidths).

0
Data
PromptBeginner5 minmarkdown

- Default bandwidth: `bw = nrd0` (Silverman's rule of thumb). For multimodal data

consider `SJ` or `bcv`.

0
General
PromptBeginner5 minmarkdown

- **Nine** `type` options (1-9). Default `type = 7` (R default

linear interpolation). Type 1 = inverse of empirical CDF (SAS default). Types 4-9 are continuous; 1-3 are discontinuous.

0
General
PromptBeginner5 minmarkdown

- `prcomp` uses **SVD** (numerically superior); `princomp` uses `eigen` on covariance (less stable

N-1 vs N scaling).

0
General
PromptBeginner5 minmarkdown

- `method = euclidean` (default). Other options: `manhattan`

`maximum`

0
General
PromptBeginner5 minmarkdown

- Methods: `holm` (default)

`BH` (Benjamini-Hochberg FDR)

0
Data
PromptBeginner5 minmarkdown

- Returns a matrix of p-values

not test statistics.

0
Data
PromptBeginner5 minmarkdown

- For composite hypotheses (parameters estimated from data)

p-values are **conservative** (too large). Use `dgof` or `ks.test` with `exact = NULL` for discrete distributions.

0
General
PromptBeginner5 minmarkdown

- For tables larger than 2x2

uses simulation (`simulate.p.value = TRUE`) or network algorithm.

0
General
PromptBeginner5 minmarkdown

- `exact = TRUE` by default for small samples with no ties. With ties

normal approximation used.

0
General
PromptBeginner5 minmarkdown

- Paired test: `paired = TRUE` uses signed-rank test (Wilcoxon)

not rank-sum (Mann-Whitney).

0
General
PromptBeginner5 minmarkdown

- `simulate.p.value = TRUE`: Monte Carlo with `B = 2000` replicates (min p ~ 0.0005). Simulation assumes **fixed marginals** (Fisher-style sampling

not the chi-sq assumption).

0
General
PromptBeginner5 minmarkdown

- Return object includes `$expected`

`$residuals` (Pearson)

0
General
PromptBeginner5 minmarkdown

- For goodness-of-fit: pass a vector

not a matrix. `p` must sum to 1 (or set `rescale.p = TRUE`).

0
General
PromptBeginner5 minmarkdown

- `uniroot`: finds a root of `f` in `[lower

upper]`. **Requires** `f(lower)` and `f(upper)` to have opposite signs.

0
General
PromptBeginner5 minmarkdown

- `anova(model1

model2)`: F-test comparing nested models.

0