[R] predict() and heteroskedasticity-robust standard errors

2011-07-25 Thread E Hofstadler
Hello there, I have a linear regression model for which I estimated heteroskedasticity-robust (Huber-White) standard errors using the coeftest function in the lmtest-package. Now I would like to inspect the predicted values of the dependent variable for particular groups and include a confidence

[R] Dotplot (package Hmisc) with groups: colours and symbols

2011-05-11 Thread E Hofstadler
Hello all, This question concerns the function Dotplot from the Hmisc package. My aim is to compare values between groups in each panel of the Dotplot, with the values of different groups clearly distinguishable by different symbols. All lines and symbols should be coloured in black. Before

[R] memory and bootstrapping

2011-05-05 Thread E Hofstadler
hello, the following questions will without doubt reveal some fundamental ignorance, but hopefully you can still help me out. I'd like to bootstrap a coefficient gained on the basis of the coefficients in a logistic regression model (the mean differences in the predicted probabilities between

[R] adding columns to dataframes contained in a list

2011-05-04 Thread E Hofstadler
hi there, I have a list of 5 identical dataframes: mydf - data.frame(x=c(1:5), y=c(21:25)) mylist - rep(list(mydf),5) and a factor variable with 5 levels: foo - c(letters[1:5]) foo - as.factor(foo) Question: I'd like to add a new variable to each dataframe in the list, each containing only

[R] calculations with vectors of unequal length

2011-04-27 Thread E Hofstadler
Hi there, this is probably simple but I can't seem to figure it out by myself... I have two dataframes (df.1 and df.2): df.1 - data.frame(year=factor(rep(1:3,3)), level=rep(letters[1:3],3), number=c(11:19)) df.2 - data.frame(year=factor(c(1:5)), number=c(21:25)) I would like to create a new

Re: [R] calculations with vectors of unequal length

2011-04-27 Thread E Hofstadler
Great, many thanks to Scott and Petr! 2011/4/27 Petr PIKAL petr.pi...@precheza.cz: Hi r-help-boun...@r-project.org napsal dne 27.04.2011 13:30:13: Hi there, this is probably simple but I can't seem to figure it out by myself... I have two dataframes (df.1 and df.2): df.1 -

[R] programming: telling a function where to look for the entered variables

2011-04-01 Thread E Hofstadler
Hi there, Could someone help me with the following programming problem..? I have written a function that works for my intended purpose, but it is quite closely tied to a particular dataframe and the names of the variables in this dataframe. However, I'd like to use the same function for

Re: [R] programming: telling a function where to look for the entered variables

2011-04-01 Thread E Hofstadler
://biomath.ugent.be wink: A1.056, Coupure Links 653, 9000 Gent ring: 09/264.59.36 -- Do Not Disapprove -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of E Hofstadler Sent: vrijdag 1 april 2011 13:09 To: r-help@r-project.org Subject

Re: [R] programming: telling a function where to look for the entered variables

2011-04-01 Thread E Hofstadler
'. Sorry about that, I can see how my variable names were somewhat confusing. Many thanks once again! -Original Message- From: irene.p...@googlemail.com [mailto:irene.p...@googlemail.com] On Behalf Of E Hofstadler Sent: vrijdag 1 april 2011 14:28 To: Nick Sabbe Cc: r-help@r

[R] glm: calculating average marginal effects for dummies

2011-03-28 Thread E Hofstadler
Dear list, My question to follow is not a pure R question but contains also a more general statistical/econometrical part, but I was hoping that perhaps someone knowledgable on this list could offer some help. I have estimated a binary logistic regression model and would like to calculate

Re: [R] censReg or tobit: testing for assumptions in R?

2011-02-14 Thread E Hofstadler
Thanks for your response! Terry Therneau wrote: I assume you mean survreg in the survival package. It's a shame that censored gaussian regression has earned a unique label (tobit) that makes people think it is something so very different. (yes, what I meant was the function tobit() from

[R] censReg or tobit: testing for assumptions in R?

2011-02-11 Thread E Hofstadler
Hello! I'm thinking of applying a censored regression model to cross-sectional data, using either the tobit (package survival) or the censReg function (package censReg). The dependent variable is left and right-censored. My hopefully not too silly question is this: I understand that

Re: [R] adding text to y-axis per row of panels (lattice)

2011-01-29 Thread E Hofstadler
Hello again, many thanks for your help! after upgrading the lattice package to the latest version, your solution works perfectly. Deepayan Sarkar wrote: On Fri, Jan 28, 2011 at 5:21 PM, E Hofstadler e.hofstad...@gmail.com wrote: Hello Deepayan, many thanks for your reply and help. Does

Re: [R] adding text to y-axis per row of panels (lattice)

2011-01-28 Thread E Hofstadler
, 2011 at 2:04 PM, E Hofstadler e.hofstad...@gmail.com wrote: Dear all, Being a newbie to R, I've trawled through many old posts on this list looking for a solution to my problem, but unfortunately couldn't quite figure it out myself. I'd be very grateful if someone here on this list could

[R] adding text to y-axis per row of panels (lattice)

2011-01-20 Thread E Hofstadler
Dear all, Being a newbie to R, I've trawled through many old posts on this list looking for a solution to my problem, but unfortunately couldn't quite figure it out myself. I'd be very grateful if someone here on this list could perhaps help me out. I have a lattice plot with several panels and