mypred.lm: Given a fit object and a new data, yields predictions of the...

Description Usage Arguments Value See Also

Description

This is an internal function that computes fitted values for observed values in the core set range, and for those outside it uses a extrapolation equivalent to a shift. It is called by get.all.qnorm and is to be used internally, so has no functionality other than what is described.

Usage

1
mypred.lm(my_fit, newdata, mymin_pm, mymax_pm)

Arguments

my_fit

an object of class "lm", generated by a call to lm. It is expected to represent the regression of the observed percentiles to their quantile-normalized values.

newdata

numeric vector containing all lethality scores, for which predictions will be made based upon the fit given by my_fit

mymin_pm

numeric (scalar), the minimum value for the core set lethality scores

mymax_pm

numeric (scalar), the maximum value for the core set lethality scores

Value

a numeric vector with as many entries as newdata,containing the predicted values, which correspond to the quantile-normalized lethality scores for all observed scores.

See Also

get.rscreenorm which yields core sets and quantile-normalizes data at once, codeget.qnorm which quantile-normalizes data for a given core set and get.all.qnorm to compute the quantile normalized scores.


rxmenezes/rscreenorm documentation built on May 15, 2019, 1:19 p.m.