
Number of Parameters, Attributes, and Stimuli
npar.Rd
npar(m)
counts the parameters in a cm, nstim(m)
counts stimuli, natt(m)
counts attributes by stimulus, nobs(m)
counts observations in the data of a model.
Arguments
- x
a model object
- ...
ignored
- type
A string:
"all"
counts all parameters,"free"
counts the free parameters,"fix"
countes the fixed parameters,"constrained"
counts constrained parameters.
Examples
D <- data.frame(x = 1, y = 1, z = 1)
M <- bayes_beta(y ~ x + z, D, fix = "start")
#> Error in bayes_beta(y ~ x + z, D, fix = "start"): could not find function "bayes_beta"
npar(M) # 3
#> Error in npar(M): object 'M' not found
npar(M)
#> Error in npar(M): object 'M' not found