[R] Clustered Standard Errors?

2015-11-16 Thread Ignacio Martinez
Hi, I found this post from 2011 for doing clustered standard errors in R. Is there any update to the lm package that allows to do this without having to write your own function? In STATA is as simple as adding cluster to

Re: [R] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Ignacio Martinez
#.O#. with > > /Software/Embedded Controllers) .OO#. .OO#. > rocks...1k > > > ------- > > Sent from my phone. Please excuse my brevity. > > > > On July 27, 2015 10:21:51 AM CDT, Ignacio Martinez > wrote: > >> Hi, > >> > &

[R] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Ignacio Martinez
Hi, I created a R library that uses a Fortran module. Everything works like a charm on linux. Now I'm trying to make it work on Windows. I cloned my git repository on a windows computer, and when I press the build and reload button on Rstudio I get these errors

Re: [R] Speeding up code?

2015-07-16 Thread Ignacio Martinez
spose on matrix and not dataframe >> > separoPairs <- as.data.frame(t(xm), stringsAsFactors = FALSE) >> > print(proc.time() >> + >> + ) >>user system elapsed >> 20.905.36 596.57 >> > >> >> >> Jim Holtman >> Da

Re: [R] Speeding up code?

2015-07-16 Thread Ignacio Martinez
without replacement > rather than loop iteratively and use unique? Or if the set of possible > names are short enough why not just randomize it and then pull the first n > items off? > > Best, > Collin. > > On Wed, Jul 15, 2015 at 11:15 PM, Ignacio Martinez >

[R] Speeding up code?

2015-07-15 Thread Ignacio Martinez
Hi R-Help! I'm hoping that some of you may give me some tips that could make my code more efficient. More precisely, I would like to make the answer to my stakoverflow question more efficient

Re: [R] ivreg with fixed effect in R?

2013-10-19 Thread Ignacio Martinez
Thanks. One more question. When I do summary to see the coefficients how can i tell R to print just some of the coefficients? Thanks again On Sat, Oct 19, 2013 at 7:29 AM, Achim Zeileis wrote: > On Sat, 19 Oct 2013, Ignacio Martinez wrote: > > I want to estimate the following fix

[R] ivreg with fixed effect in R?

2013-10-19 Thread Ignacio Martinez
I want to estimate the following fixed effect model: y_i,t = alpha_i + beta_1 x1_t + beta_2 x2_i,tx2_i,t = gamma_i + gamma_1 x1_t + gamma_2 Z1_i + gamma_3 Z2_i I can use ivreg from AER to do the iv regression. fm <- ivreg(y_i,t ~ x1_t + x2_i,t |x1_t + Z1_i + Z2_i, data = Da

Re: [R] lapply to multivariate function?

2013-09-01 Thread Ignacio Martinez
data.frame") data<-structure(list(anon_ID = c("exampleID1", "exampleID2", "exampleID3" ), maxGrade = c(10, 5, 10), firstGrade = c(10, 5, 8), lastGrade = c(10, 5, 10), total_submissions = c(1L, 1L, 3L), Time1 = structure(c(1361993741, 1362356090, 1362357401), class

Re: [R] lapply to multivariate function?

2013-09-01 Thread Ignacio Martinez
"maxGrade", "firstGrade", "lastGrade", "total_submissions", "Time1", "TimeM", "TimeL"), row.names = c(NA, 3L), class = "data.frame") But with a lot more observations. What I want to do is to call function (userX, Time

[R] lapply to multivariate function?

2013-09-01 Thread Ignacio Martinez
I have a Data Frame that contains, between other things, the following fields: userX, Time1, Time2, Time3. The number of observations is 2000. I have a function that has as inputs userX, Time1, Time2, Time3 and return a data frame with 1 observation and 19 variables. I want to apply that function

[R] [SQL]

2013-04-25 Thread Ignacio Martinez
Hi, The data for my new project are in a bunch of .sql files, instead of the clasic csv files that I'm used to work with. Could someone explain to me how to read these files into R? Thanks, -Ignacio [[alternative HTML version deleted]] __ R-

Re: [R] Finding a max

2012-11-21 Thread Ignacio Martinez
x(prop3$Low) # Row number that maximizes Low > which.max(prop3$High) # Row number that maximizes High > > > Hope this helps, > > Rui Barradas > > Em 21-11-2012 17:10, Ignacio Martinez escreveu: > >> My data looks like this: >> >> X Y1(X) Y2(X) >> >

[R] Finding a max

2012-11-21 Thread Ignacio Martinez
My data looks like this: X Y1(X) Y2(X) i want to find the values of x that maximize Y1 and Y2. Right now I'm getting the answer but I would like to know if there is a more efficient/elegant way of doing this. This code reproduces what I'm doing: [code] prop3<-structure(list(effort = c(0, 0.00898

Re: [R] Plot 3 lines in one graph

2012-11-06 Thread Ignacio Martinez
* > > -- > > David L Carlson > > Associate Professor of Anthropology > > Texas A&M University > > College Station, TX 77843-4352 > > ** ** > > *From:* Ignacio Martinez [mailto:ignaci...@gmail.c

Re: [R] Plot 3 lines in one graph

2012-11-06 Thread Ignacio Martinez
m: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Peter Alspach > > Sent: Monday, November 05, 2012 10:41 PM > > To: Ignacio Martinez; r-help > > Subject: Re: [R] Plot 3 lines in one graph > > > > Tena koe Ignacio > > >

[R] Plot 3 lines in one graph

2012-11-05 Thread Ignacio Martinez
I'm new with R. I want to plot 3 lines in one graph. This is my data: print(x) V1 V2 V3 V41 -4800 25195.73 7415.219 7264.282 -2800 15195.73 5415.219 7264.28 I tried using matplot, but I cannot get exactly what I want. This is what I get, and this is my code: matplot(x[,1],x