Explore

Find agent skills by outcome

117,973 skills indexed with the new KISS metadata standard.

Showing 24 of 117,973Categories: Operations & Workflow, Coding & Debugging, General, Creative, Cursor-rules, Data
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
Creative
PromptBeginner5 minmarkdown

- `nstart > 1` recommended (e.g.

`nstart = 25`): runs algorithm from multiple random starts

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
General
PromptBeginner5 minmarkdown

> Non-obvious behaviors

gotchas

0
Coding & Debugging
PromptBeginner5 minmarkdown

- `SANN` (simulated annealing): convergence code is **always 0** — it never fails. `maxit` = total function evals (default 10000)

no other stopping criterion.

0
General
PromptBeginner5 minmarkdown

- Default method is Nelder-Mead (no gradients

robust but slow). Poor for 1D — use `Brent` or `optimize()`.

0
General
PromptBeginner5 minmarkdown

- Returns object with `predict`

`print`

0
General
PromptBeginner5 minmarkdown

- `predict.glm` with `type = response` gives predictions on the response scale (e.g.

probabilities for logistic); `type = link` (default) gives on the link scale.

0
General
PromptBeginner5 minmarkdown

- `lowess` parameter is `f` (span

default 2/3); `loess` parameter is `span` (default 0.75).

0
General
PromptBeginner5 minmarkdown

- `lowess` is the older function; returns `list(x

y)` — cannot predict at new points.

0
Data
PromptBeginner5 minmarkdown

- If data fits too exactly (no residual noise)

convergence check fails — use `control = list(scaleOffset = 1)` or jitter data.

0
General
PromptBeginner5 minmarkdown

- Direction: `direction = both` (default)

`forward`

0