ntp_polyk: Poly-k test This function implements the NTP's polyK trend...

View source: R/NTP.R

ntp_polykR Documentation

Poly-k test This function implements the NTP's polyK trend test.

Description

Poly-k test This function implements the NTP's polyK trend test.

Usage

ntp_polyk(dose, tumor, daysOnStudy)

Arguments

dose

An equation of the form Y \sim X. Here the variable Y is the response of interest, and X represents discrete experimental conditions. For example, if weight is the dependent variable, and you are interested in looking at the trend across sex one would have 'weight ~ sex'.

tumor

A data frame with column names in the formula.

daysOnStudy

The name of the variable containing the doses in the data frame data. It is expected multiple doses for each of the experimental conditions X.

Value

The results of a Williams trend test for each level in dose_name. More information on this procedure at: doi: 10.2307/2531856 and doi: 10.2307/2532200 This procedure returns a vector of three p-values for the poly-1.5, poly-3, and poly-6 test respectively.

Examples

ntp_polyk(ntp_599_female$dose,ntp_599_female$adenoma,ntp_599_female$days_on_study)

ToxicR documentation built on Dec. 28, 2022, 3:07 a.m.