| predict.cnormShash | R Documentation |
This function calculates norm scores based on raw scores, age, and a fitted cnormShash model.
## S3 method for class 'cnormShash'
predict(object, ...)
object |
A fitted model object of class 'cnormShash'. |
... |
Additional arguments passed to the prediction method:
|
The function predicts the Sinh-Arcsinh (shash) distribution parameters (mu, sigma, epsilon, delta)
for each age using the provided model. It then calculates the cumulative probability for each
raw score given these parameters using the continuous shash distribution. Finally,
it converts these probabilities to the norm scale specified in the model. Raw scores
at the extreme floor or ceiling of the distribution are mapped to the boundary of the
norm score range (mean +/- range standard deviations), not to the mean.
A numeric vector of norm scores.
Other predict:
derivationTable(),
getNormCurve(),
normTable(),
predict.cnormBetaBinomial(),
predict.cnormBetaBinomial2(),
predictNorm(),
predictRaw(),
rawTable()
## Not run:
# Assuming you have a fitted model named 'shash_model':
model <- cnorm.shash(children$age, children$score)
raw_scores <- c(25.5, 30.2, 18.7, 45.3)
ages <- c(7, 8, 9, 10)
norm_scores <- predict(model, ages, raw_scores)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.