Re: [R] Prediction with two fixed-effects - large number of IDs

2017-06-17 Thread David Winsemius
> On Jun 17, 2017, at 12:01 PM, Jeff Newmiller wrote: > > I have no direct experience with such horrific models, but your formula is a > mess and Google suggests the biglm package with ffdf. > > Specifically, you should convert your discrete variables to factors before > you build the model,

Re: [R] [FORGED] About error bars on barplots

2017-06-17 Thread lily li
Okay, thanks for letting me know. I found the plot from website so thought there may be a way. I just converted the format of the figure, and attached. But I don't mean to use it as you suggested. Thanks. On Sat, Jun 17, 2017 at 6:30 PM, Rolf Turner wrote: > On 18/06/17 12:10, lily li wrote: > >

Re: [R] [FORGED] About error bars on barplots

2017-06-17 Thread Rolf Turner
On 18/06/17 12:10, lily li wrote: Hi R users, I have a question about adding uncertainty bars to stacked bar plots. DF: year A B C Amin Amax Bmin Bmax Cmin Cmax 2009 40 45 15 30 61 23 56 14 17 2010 36 41 23 26 54 22 51

[R] About error bars on barplots

2017-06-17 Thread lily li
Hi R users, I have a question about adding uncertainty bars to stacked bar plots. DF: year A B C Amin Amax Bmin Bmax Cmin Cmax 2009 40 45 15 30 61 23 56 14 17 2010 36 41 23 26 54 22 51 22 24 I use the code below:

Re: [R] Plot MArginal distribution in the correct place

2017-06-17 Thread Pedro páramo
Can you suggest a plot on the right side so that the right plot has the same units of left plot and reflect the counts of the number of time the values repeat, something like the empirical distribution? 2017-06-14 12:30 GMT+02:00 Jim Lemon : > Hi Pedro, > If you keep that same margins for the s

Re: [R] Prediction with two fixed-effects - large number of IDs

2017-06-17 Thread Miluji Sb
Dear Jeff, Thank you so much and apologies for the typo in I() - it was silly. I will try the biglm package - thanks! Sincerely, Milu On Sat, Jun 17, 2017 at 9:01 PM, Jeff Newmiller wrote: > I have no direct experience with such horrific models, but your formula is > a mess and Google sugges

Re: [R] Prediction with two fixed-effects - large number of IDs

2017-06-17 Thread Jeff Newmiller
I have no direct experience with such horrific models, but your formula is a mess and Google suggests the biglm package with ffdf. Specifically, you should convert your discrete variables to factors before you build the model, particularly since you want to use predict after the fact, for whic

Re: [R] write.dna command

2017-06-17 Thread William Michels via R-help
We'll need more information on the packages you're using. Can you post the output of: > sessionInfo() Finally, is this a Bioconductor question? They have their own support site: https://support.bioconductor.org HTH, William Michels, Ph.D. On Sat, Jun 17, 2017 at 11:05 AM, Jeff Newmiller wro

[R] Prediction with two fixed-effects - large number of IDs

2017-06-17 Thread Miluji Sb
Dear all, I am running a panel regression with time and location fixed effects: ### reg1 <- lm(lny ~ factor(id) + factor(year) + x1+ I(x1)^2 + x2+ I(x2)^2 , data=mydata, na.action="na.omit") ### My goal is to use the estimation for prediction. However, I have 8,500 IDs, which is resulting in v

Re: [R] write.dna command

2017-06-17 Thread Jeff Newmiller
I suspect you meant WD <- "~/Documents/Scripting/R_Studio/Sequences/" but I am entirely unfamiliar with the packages you are using, and know nothing about what is on your hard drive. For future reference: A) Read the Posting Guide. This is a plain text email list, and your html formatting g

Re: [R] (no subject)

2017-06-17 Thread Jeff Newmiller
You desperately need to read the Posting Guide... A) There is a no homework policy on this list. If this is for a class, stop now and go use the assistance resources offered by your educational institution. B) This is a plain text mailing list so the table formatting you saw when you sent this

[R] write.dna command

2017-06-17 Thread Mogjib Salek
Hi all, I am learning R by "doing". And this is my first post. I want to use R: 1- to fetch a DNA sequence from a databank (see bellow) and 2- store it as FASTA file. The problem: neither an error is prompted nor the fasta file is created. Testing the code (see bellow), I notice that everything

[R] (no subject)

2017-06-17 Thread Sharma, Sonisa
I have 4 years of data and for each year, I have initialize the value so now for fitting the model, I want to remove the initial value and get the model based on remaining data set. Could anyone can help on this? I want to get linear model based on fourth column and 13th column but need to remov

[R] Using mfx to create marginal effects

2017-06-17 Thread T . Riedle
Dear all, I am trying to estimate the marginal effects of a logit regression using the mfx package. It is crucial that the standard errors are clustered at the year level. Hence, the code looks as follows: marginal.t24.2<-logitmfx(stock.market.crash~crash.t24+bubble.t24+RV.t24,data=Data_logit