rqfun | R Documentation |
Create a rqfun object for power.rq.test.
rqfun(mu=0, sd=1, dist='norm', term=c('1'), pos=2, method='exact', a=NA, b=NA)
mu |
Mean of independent variable under univariate case. |
sd |
Standard deviation of independent variable under univariate case.. |
dist |
The distribution which takes "norm" as normal and "unif" as uniform. |
term |
It takes a vector of strings of the form of integers or "log", "sqrt" and "exp" eg. term=c("1","-1","log", "sqrt") indicates there are 4 variables: x,1/x,log(x) and sqrt(x) |
pos |
The position of the regression coefficient(s) of interest (position of intercept is 1, but it is not important, so 1 is not recommended). |
method |
"exact" or "sim" which are the methods to compute variance of regression coefficients, "exact" method is recommended when variables are chosen from x,x^2,x^3,...,and x^5 |
a |
If dist is "unif", this is the lower limit of uniform distribution. It is optional if "mu" and "sd" are already specified. |
b |
If dist is "unif", this is the upper limit of uniform distribution. It is optional if "mu" and "sd" are already specified. |
#Construct x
x = rqfun(mu = 5, sd = 1.5, dist = "norm", pos = 2, term = c('1','log','1/sqrt'),a=NA,b=NA, method = 'exact')
## plot and print function can be used to summary the rqfun function
#print(x)
#plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.