Displaying 20 results from an estimated 7000 matches similar to: "Quantile regression with some parameters fixed across tau.."
2017 Jun 19
0
quantreg::rq.fit.hogg crashing at random
Dear all,
I am using the "rq.fit.hogg" function from the "quantreg" package. I have
two problems with it.
First (less importantly), it gives an error at its default values with
error message "Error in if (n2 != length(r)) stop("R and r of incompatible
dimension") : argument is of length zero". I solve this by commenting four
lines in the code. I.e. I
2006 Jul 08
1
KhmaladzeTest
Hello. I am a beginer in R and I can not implement the KhmaladzeTest in the following command. Please help me!!!!!!!!!!!
PD: I attach thw results and the messages of the R program
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0
R es un software libre y viene sin GARANTIA ALGUNA.
Usted puede redistribuirlo bajo ciertas
2008 May 15
2
plot(summary) within quantreg package
Quantreg package allows to plot the summary of models derived by quantile
regression at different taus.
The plot shows the parameters variation by varying taus: intercept and slope
(for a linear model).
Together with these values even confidence intervals may be plotted, based
on the threshold given within the summary (e.g. alpha=0.01 equals 99% CI).
However the graphic even plots the mean of
2018 Apr 07
0
Fast tau-estimator line does not appear on the plot
You need to pay attention to the documentation more closely. If you don't
know what something means, that is usually a signal that you need to study
more... in this case about the difference between an input variable and a
design (model) matrix. This is a concept from the standard linear algebra
formulation for regression equations. (Note that I have never used RobPer,
nor do I regularly
2008 Jan 01
2
Non-Linear Quantile Regression
Please,
I have a problem with nonlinear quantile regression.
My data shows a large variability and the quantile regression seemed perfect
to relate two given variables. I got to run the linear quantile regression
analysis and to build the graph in the R (with quantreg package). However, the
up part of my data dispersion seems a positive exponential curve, while the
down part seems a negative
2018 Mar 31
2
Fast tau-estimator line does ot appear on the plot
Dear R-experts,
Here below my reproducible R code. I want to add many straight lines to a plot using "abline"
The last fit (fast Tau-estimator, color yellow) will not appear on the plot. What is going wrong ?
Many thanks for your reply.
##########
Y=c(2,4,5,4,3,4,2,3,56,5,4,3,4,5,6,5,4,5,34,21,12,13,12,8,9,7,43,12,19,21)
2009 May 31
1
warning message when running quantile regression
Hi All,
I am running quantile regression in a "for loop" starting with 1
variable and adding a variable at a time reaching a maximum of 20
variables.
I get the following warning messages after my "for" loop runs. Should I
be concerned about these messages? I am building predictive models and
am not interested in inference.
Warning messages:
1: In
2018 Apr 06
1
Fast tau-estimator line does not appear on the plot
R-experts,
I have fitted many different lines. The fast-tau estimator (yellow line) seems strange to me?because this yellow line is not at all in agreement with the other lines (reverse slope, I mean the yellow line has a positive slope and the other ones have negative slope).
Is there something wrong in my R code ? Is it because the Y variable is 1 vector and should be a matrix ?
Here is the
2018 Mar 31
0
Fast tau-estimator line does ot appear on the plot
On 31/03/2018 11:57 AM, varin sacha via R-help wrote:
> Dear R-experts,
>
> Here below my reproducible R code. I want to add many straight lines to a plot using "abline"
> The last fit (fast Tau-estimator, color yellow) will not appear on the plot. What is going wrong ?
> Many thanks for your reply.
>
It's not quite reproducible: you forgot the line to create
2013 Jun 29
0
Quantile Regression/(package (quantreg))
Mike,
Do something like:
require(rms)
dd <- datadist(mydatarame); options(datadist='dd')
f <- Rq(y ~ rcs(age,4)*sex, tau=.5) # use rq function in quantreg
summary(f) # inter-quartile-range differences in medians of y (b/c tau=.5)
plot(Predict(f, age, sex)) # show age effect on median as a continuous
variable
For more help type ?summary.rms and ?Predict
Frank
------------
2012 Jul 28
4
quantreg Wald-Test
Dear all,
I know that my question is somewhat special but I tried several times to
solve the problems on my own but I am unfortunately not able to compute the
following test statistic using the quantreg package. Well, here we go, I
appreciate every little comment or help as I really do not know how to tell
R what I want it to do^^
My situation is as follows: I have a data set containing a
2004 Jul 19
3
why won't rq draw lines?
I've been trying to draw quantile linear regression lines across a scatterplot of my data using
attach(forrq)
plot(PREGNANT,DAY8,xlab="pregnant EPDS",ylab="postnatal EPDS",cex=.5)
taus <- c(.05,.1,.25,.75,.9,.95)
xx <- seq(min(PREGNANT),max(PREGNANT),100)
for(tau in taus){
f <- coef(rq(DAY8~PREGNANT,tau=tau))
yy <-
2011 Jan 11
1
Confidence interval on quantile regression predictions
I am using the quantreg package to build a quantile regression model and
wish to generate confidence intervals for the fitted values.
After fitting the model, I have tried running predict() and
predict.rq(), but in each case I obtain a vector of the fitted values
only.
For example:
library(quantreg)
y<-rnorm(50,10,2)
x<-seq(1,50,1)
2011 Sep 27
1
Is there a "latex" summary function in the quantreg package for just 1 tau?
Hello dear R help members,
I wish to get a nice LaTeX table for a rq object.
Trying to use the functions I found so far wouldn't work. I can
start opening the functions up, but I am wondering if I had missed some
function which is the one I should be using.
Here is an example session for a bunch of possible errors:
(Thanks)
data(stackloss)
y <- stack.loss
x <- stack.x
rq_object
2011 Jul 11
3
quantile regression: out of memory error
Hello, I?m wondering if anyone can offer advice on the out-of-memory error I?m getting. I?m using R2.12.2 on Windows XP, Platform: i386-pc-mingw32/i386 (32-bit).
I am using the quantreg package, trying to perform a quantile regression on a dataframe that has 11,254 rows and 5 columns.
> object.size(subsetAudit.dat)
450832 bytes
> str(subsetAudit.dat)
'data.frame': 11253 obs.
2011 Aug 23
3
Change Variable Labels in Quantile Plot
I have spent hours on this ---looked through the quantreg manual and r-help site--- still couldn't figure out the answer. Can someone please help me on this?
I plot the result from quantile regression and want to change the variable labels:
temp<-rq(dep~inc+age50, data=newdata, tau=1:9/10)
temp2<-plot(summary(temp))
dimnames(temp2)[[1]]<-c("Intercept", "Per Capita
2010 Oct 10
0
rearrange command in quantreg package
Dear all,
I want to use the "rearrange" command which is based on Chernozhukov et al
paper and is included in the quantreg package. So, I run a quantile
regression in which I included dummy variables for state and years in order
to estimate the respective fixed effects quantile regression. The problems
are the followings:
1. At example that is stated in the help****, I don't
2018 May 24
2
Problem with adding a raster and a brick
Hi,
I seem to be having a problem adding the following two raster objects
together - one is a rasterLayer, the other is a rasterBrick. The extent,
resolution, and origin are the same, so according to my understand it
should work. The objects look like so:
> obs.clim
class : RasterLayer
dimensions : 60, 200, 12000 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : -70,
2012 Jun 07
1
Quantile regression: Discrepencies Between optimizer and rq()
Hello Everyone,
I'm currently learning about quantile regressions. I've been using an
optimizer to compare with the rq() command for quantile regression.
When I run the code, the results show that my coefficients are consistent
with rq(), but the intercept term can vary by a lot.
I don't think my optimizer code is wrong and suspects it has something to do
with the starting
2018 May 24
0
Problem with adding a raster and a brick
On Thu, 24 May 2018 at 18:41 Mark R Payne <markpayneatwork at gmail.com> wrote:
Hi,
I seem to be having a problem adding the following two raster objects
together - one is a rasterLayer, the other is a rasterBrick. The extent,
resolution, and origin are the same, so according to my understand it
should work. The objects look like so:
> obs.clim
class : RasterLayer
dimensions : 60, 200,