Displaying 20 results from an estimated 800 matches similar to: "logo"
2003 Sep 20
1
factorial design
Hello all,
I´m trying to study a factorial design, but I can´t understand why did Df, Sum Sq and Mean Sq of residuals alter when I Split the interaction? I think that Split the interaction must not alter the residuals. Am I doing something wrong?
Could anyone help me?
My data and functions I tried are:
Y<-c(196,213,183,
192,253,199,
251,331,276,
2004 Apr 06
4
how to learn R quickly?
i am new to R,so i post here to ask you how to learn R quickly?
is there some usefull materials about using R.
ps:though the manual is a good materials,but it is not the best for a newbie,i think.
thank you !
2009 Jun 01
2
subset dataframe/list
Hi R-helpers!
I have the following object:
> head(coeficientes)
caedois b1 b2 b3
1 1 0,033120395 -20,29478338 -0,274638864
2 2 -0,040629634 74,54239889 -0,069958424
3 5 -0,001116816 35,2398622 0,214327185
4 10 0,171875
5 14 0,007288399 40,06560548 -0,081828338
6 15 0,027530346 0,969969409 0,102775555
2004 Feb 12
6
Basic Help
OK I have been trying to learn how to use this program and I cannot even
import any data into it. I have downloaded all the manuals but they do not
seem to help. Is there a book on R for dummies???
2010 Aug 21
3
problems with merge() - the output has many repeated lines
Hi everyone,
I have been merging many big dataframes (about 80000 rows
each) and I never had this problem, but now it happened to
me and I want to know if someone knows what could be
happening.
The final dataframe has many rows, an impossible number! I
have done edit(dataframe) and I saw that there are many
repeated rows (all equal).
Thanks for any help,
Cec?lia Carmo
Universidade de
2010 Aug 01
3
remove extreme values or winsorize – loop - dataframe
Hi everyone!
#I need a loop or a function that creates a X2 variable
that is X1 without the extreme values (or X1 winsorized)
by industry and year.
#My reproducible example:
firm<-sort(rep(1:1000,10),decreasing=F)
year<-rep(1998:2007,1000)
industry<-rep(c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5,10),rep(6,10),rep(7,10),rep(8,10),rep(9,10),
rep(10,10)),1000)
X1<-rnorm(10000)
2009 Jun 02
1
R: subset dataframe/list
Thank you all!!!
The problem was the decimal symbol! My data was saved in a
txt file, so I?ve introduced the dec="," in ?read.table?
and it worked. What I?ve done was
coeficientes<-read.table("coeficientes.txt",sep="\t",header=T,dec=",")
Then, subset worked fine
coeficientesWanted<-subset(coeficientes,b1>0)
Thanks again,
Cec?lia Carmo
2011 Sep 05
1
plm package, R squared, dummies in panel data
Hi R-helpers,
I have two questions I hope you could help me with them:
In the plm package how can I calculate the R2 within, R2 between and R2
overall? Is there any special reason to not display these values?
When using first differences do I need to have some special care with
dummies (both year dummies and industry dummies)?
(A friend who works with Stata told me that there is
2005 Jul 15
2
RES: Meet Me - this is not a valid conference number, please try again
Hello Haki
I fixed this problem following the instructions in /usr/src/zaptel-1.0.9/README.udev.
Regards
Cec?lia
-----Mensagem original-----
De: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]Em nome de Erdem HAKI
Enviada em: sexta-feira, 15 de julho de 2005 05:11
Para: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Assunto:
2023 Jul 05
1
textual analysis - transforming several pdf to txt - naming the files
convertpdf2txt <- function(dirpath){
files <- list.files(dirpath, pattern = "Consoli.*\\.pdf$", full.names
= TRUE)
files <- chartr("\\", "/", files)
x <- lapply(files, function(x){
pdftools::pdf_text(x) %>%
paste0(collapse = " ") %>%
stringr::str_squish()
})
new_names <-
2011 Oct 02
2
subset in dataframes
I need help in subseting a dataframe:
data1<-data.frame(year=c(2001,2002,2003,2004,2001,2002,2003,2004,
2001,2002,2003,2004,2001,2002,2003,2004),
firm=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4),x=c(11,22,-32,25,-26,47,85,98,
101,14,87,56,12,43,67,54),
y=c(110,220,302,250,260,470,850,980,1010,140,870,560,120,430,670,540))
data1
I want to keep the firms where all x>0 (where there are
2023 Jul 05
1
textual analysis - transforming several pdf to txt - naming the files
I am taking my first steps in textual analysis with R.
I have pdf files consisting of company reports for several years (1 file corresponds to 1 company and 1 year).
My idea is to start by transforming all my pdf files into txt files for further treatment and analysis (this will allow me to group the files by company or by year, depending on the future analysis to be performed).
I do not have
2010 Aug 20
5
paired samples, matching rows, merge()
Hi everyone!
I'm matching two samples to create one sample that have
pairs of observations equal for the k1 variable. Merge()
doesn't work because I dont't want to recycle the values.
x <- data.frame(k1=c(1,1,2,3,3,5),
k2=c(20,21,22,23,24,25))
x
y <- data.frame(k1=c(1,1,2,2,3,4,5,5),
k2=c(10,11,12,13,14,15,16,17))
y
merge(x,y,by="k1")
k1 k2.x k2.y
1 1 20
2010 Aug 17
1
replace loops with matrix
Hey, R users
I am using?numerical method for my research paper and the computation burden is
very heavy. first I tried to do it with loops, example code as following, and it
take hours to converge for only 200 obs. and my real data has 4000 obs. and the
optimization command that I use is:
optim(guess,myfunc1,data=mydata, method="BFGS",hessian=T))
then I tried matrix
2011 Sep 22
2
the opposite of lag() in panel data
Hi R-helpers
I want a function that performs the opposite of lag() with panel data.
I have transformed my data before with pdata.frame(mydata,
index=c("groupindex", “timeindex"))
And then I’ve done lag(mydata, -1) but it doesn’t work.
The error message was:
Error in rep(1, ak) : invalid ''times'' argument
Thank you in advance,
Cecília Carmo
2009 May 24
1
subset dataframe by number of rows of equal values
Hi R helpers!
I have the following dataframe ?choose?
choose<-data.frame(firm=c(1,1,2,2,2,2,3,3,4,4,4,4,4,4),
year=c(2000,2001,2000,2001,2002,2003,2000,2003,2001,2002,2003,2004,2005,2006),code=c(10,10,11,11,11,11,12,12,13,13,13,13,13,13))
choose
I want to subset it to obtain another one with those
observations for which there more than 2 observations in
the column ?code?. So I want a
2013 Jun 07
4
matched samples, dataframe, panel data
I R-helpers
#I have a data panel of thousands of firms, by year and industry and
#one dummy variable that separates the firms in two categories: 1 if the firm have an auditor; 0 if not
#and another variable the represents the firm dimension (total assets in thousand of euros)
#I need to create two separated samples with the same number os firms where
#one firm in the first have a corresponding
2011 May 19
2
balanced panel data
I have a dataframe with many firm-year observations and many variables.
Not all firms have information for all the years.
I want another dataframe with only those firms that have information all
years.
This is, I want a balanced panel data, but with the maximum number of years.
In my reprocucible example I want to keep firms 1,2 and 3 (period 2000 to
2004).
I need your help to create a
2009 Jun 28
2
simple loop
Hi everyone!
I have this dataframe:
firm<-c(rep(1,4),rep(2,4),rep(3,4),rep(4,4),rep(5,4),rep(6,4))
year<-c(rep(2000:2003,6))
industry<-c(rep(10,4),rep(20,4),rep(30,4),rep(10,4),rep(20,4),rep(30,4))
X1<-c(10,14,18,16,20,45,23,54,24,67,98,58,16,32,57,12,54,0,0,22,11,3,5,6)
data<-data.frame(firm, industry,year,X1)
data
I need a loop that calculates the mean of X1 by year and
by
2009 May 29
1
error message in plm
Hi everyone,
Could anyone tell me what means the follow error message
Error in xj[i] : invalid subscript type 'closure'
It happens when I run the function plm, like this:
>ff<-totaccz~lactivoz+varvolnegz
>ss<-plm(ff,data=regaccdis,na.omit)
Error in xj[i] : invalid subscript type 'closure'
> coef(ss)
(Intercept) lactivoz varvolnegz
0.02571212 6.94227541