powered by
Generates a random set of parameters that follows an averaging rule.
pargen(lev, s.range = c(0,20), w.range = exp(c(-5,5)), I0 = FALSE, t.par = FALSE, digits = 2)
Numeric vector. Number of levels of each factor.
Numeric vector. Range of variability of the s-parameters.
Numeric vector. Range of variability of the w-parameters.
Logical. If set to FALSE, parameter s0 and w0 are set to zero. If set TRUE initial parameters are free to be estimated.
FALSE
TRUE
Specifies if the weight parameters should be the 't' instead the 'w'.
Numeric. Decimal rounding of the parameters.
Vector contaning the random-generated parameters in the order s0,w0,s(k,i),w(k,i).
s0,w0,s(k,i),w(k,i)
datgen, rav, rav.indices, rAverage-package
datgen
rav
rav.indices
rAverage-package
# NOT RUN { # Generating random parameters for a 3x4 design: param <- pargen(lev = c(3,4)) # }
Run the code above in your browser using DataLab