Displaying 20 results from an estimated 600 matches similar to: "(no subject)"
2011 Dec 07
1
removing specified length of text after a period in dataframe of char's
Dear all,
I'm trying to remove some text after the period (a decimal point) in
the data frame 'hi', below. This is one step in formatting a table. So
I would like e.g.
"2.0" to become "2"
and "5.3" to be "5.3",
where the variable digordered contains the number of digits after the
decimal that I would like to display, in the same order in which
2003 Jul 13
3
Memory size
Daer all,
I have the problem. I could not run the regression, because I have always the
warning message "memory.size". from the help file I learned that it is possible
to increase the memory size, but I did not undestand how could I do it. Could
you please explaine it to me. I would be very grateful for it.
The second question: I obtained from the regression the coefficient
2003 Jul 04
2
Help. Import data
Hoy,
I have the following problem. I have to import the dataset (survey) from SPSS
into R-programm. By using the "read.spss" the all of variables have been readed
as factor. I need the variables "income" and "age" as numeric for the
regreesion analysis. Could you plese help me.
Thanks a lot,
best regards,
Silika
1999 Apr 15
2
regression with uncertainty in both variables
Hi, all.
I'm trying to use some linear regression models in which both the
dependent and independent variables are measured with some error. To
make things worse, while the errors in the dependent variable are uniform,
the errors in the independent (or explanatory, or "x") variables can be
heteroskedastic. I've been looking at the book _Measurement Error Models_
by Fuller
2002 May 02
2
problem with lme in nlme package
Dear R list members,
I've turned up a strange discrepancy between results obtained from the lme
function in the nlme package in R and results obtained with lme in S-PLUS.
I'm using version 3.1-24 of nlme in R 1.4.1 under Windows 2000, and both
S-PLUS 2000 and 6.0, again under Windows 2000.
I've noticed discrepancies in a couple of instances. Here's one, using data
from Bryk
2011 Oct 09
2
variable name question
Hi All,
This is surely an easy question but somehow I am not being able to get it.
I am using R 2.13.2 and have a data set where variable names like this
appear:
pci1990, pci1991, ... , pci2009.
"pci1990" has data on per capita income for 1990, "pci1991" has data on
per capita income for 1991, and so on.
I would like to create the logarithm of per capita for each of the
2003 Aug 25
2
Book recommendations: Multilevel & longitudinal analysis
Hi, does anyone out there have a recommendation for multilevel / random
effects and longitudinal analysis?
My dream book would be something that's both accessible to a
non-statistician but rigorous (because I seem to be slowly turning into a
statistician) and ideally would use R.
Peter
2003 Jun 25
3
Help
hi
my name is Tomer,im using R version 1.4
i've encontered a couple of problems with my my R programing.
1. i cant understand what is the whights in the nnet$wts command(which
weight fit to the nodes).
2.my OS is Windows XP , i want to operate R from the command line and i want
it to operate a file automaticly(the commands written in a text file) ,is it
possible?( i know that in unix it
2012 Nov 18
2
Question about making histogram and x must be numeric
Hello all,
I hope someone of you can help me out, I have searched other posts as well
but I can't find any solution to the problem I'm dealing with.
I want to make a histogram from the data Telephone Lines
MDGdataset <-read.csv("MDG_dataset_2010.csv", header=T)
MDGdatasetAdapted <- subset(MDGdataset, select = c(Country_Code,
Country_Name, Year,
2003 Jun 25
2
within group variance of the coeficients in LME
Dear listers,
I can't find the variance or se of the coefficients in a multilevel model
using lme.
I want to calculate a Chi square test statistics for the variability of the
coefficients across levels. I have a simple 2-level problem, where I want to
check weather a certain covariate varies across level 2 units. Pinheiro
Bates suggest just looking at the intervals or doing a rather
2001 Sep 24
3
x axis point labels
I am attempting to manually specify x axis value labels (NOT x axis label as
in xlab) on a density plot. Generally speaking, I would like to erase the
default x axis point labels and replace them with arbitrary x axis point
labels relating to specific CDF points.
I am sure this can be done, but it isn't obvious to me how. Has anyone done
this before?
My R code follows if it helps (new
2004 Apr 14
3
A bug report?
Folks,
I have a strange situation, which I may have isolated as a bug
report. Or, it could just be that there's something about R that I
don't know. :-) I have attached the data file and the program file but
don't know whether these attachments will make it into the list. Here
is my bugreport.R program --
---------------------------------------------------------------------------
2008 Jan 30
2
numeric coercion when one or more elements is non numerice
I don't understand this behavior. Why does the every data point get trashed by data.matrix when there is one non-numeric element in the array? Thanks.
> temp
GDP CPIYOY
19540 2098.1 garbage
19632 2085.4 0.9
19724 2052.5 0.8
19814 2042.4 1.1
> data.matrix(temp)
GDP CPIYOY
19540 4 4
19632 3 2
19724 2 1
19814 1
2004 Jan 07
2
problem assigning an array to a variable in a data frame
Dear r-devel list members,
Dirk Eddelbuettel brought the following problem to my attention. The code
is abstracted from the appendix on mixed models from my R and S-PLUS Companion:
> set.seed(12345) # for reproducibility
> library(nlme)
Loading required package: lattice
> data(MathAchieve)
> data(MathAchSchool)
> attach(MathAchieve)
> mses <- tapply(SES, School,
2012 Apr 30
5
Different varable lengths
Hi!
I'm trying to do a lm() test on three objects. My problem is that R protests
and says that the variable lengths differ for one of the objects
(Sweden.GDP.gap). But I have double checked that the number of observations
are the same. All three objects should contain 9 observations but R only
accepts 9 observations in two of the objects. The third must have 10! Very
confusing because there
2008 Nov 10
1
plotting graph in different device
Hi,
i try to plot my graph into different device using x11(),
but when i do this comes up:
> x11(print(plot(A5e$ECAB,A5e$EXPEND,type='p',main='Per capita expenditure
> against economic
+ ability index without
outliners',xlab='ECAB',ylab='EXPEND',xlim=c(0,150),ylim=c(150,400),
+ col='red',col.axis='blue')))
NULL
Warning message:
2011 Nov 16
1
geom_bar with missing data in package ggplot
Dear all,
I was hoping someone could help with a ggplot question. I would like
to generate a faceted bar chart, but missing data are causing
problems.
g<-structure(list(Date = structure(c(11322, 11687, 12052, 11322,
11687, 12052, 11322, 11687, 12052, 11322, 11687, 12052), class = "Date"),
variable = c("Govt Revenues to GDP", "Govt Revenues to GDP",
2001 May 06
1
legend/text in time series plot
hi,
i need help on placing legend/text in a time series plot. here is what
i am doing (i am using rw1022 on windoze 2000):
#read data file
gdpn <- scan("jngdpsa.dat", list(year=0, qtr=0, gdp=0));
gdpr <- scan("jrgdpsa.dat", list(year=0, qtr=0, gdp=0));
#convert to time series object
gdpn <- ts(gdpn$gdp, frequency=4, start=c(1955,2));
gdpr <- ts(gdpr$gdp,
2002 Jun 14
1
data.frame - transform
Hi there,
I have a data.frame (pwt6) which I would like to transform:
country year gdp
MEX 1950 2
MEX 1951 5
BOL 1950 4
BOL 1951 12
ITA 1950 45
ITA 1951 2
This should be the result:
year MEX.gdp BOL.gdp ITA.gdp
1950 2 4 45
1951 5 12 2
Right now I have this code (better - no code):
country.label<-names(table(pwt6$country))
result<-data.frame(year=NULL)
for(i in country.label)
?
2011 Aug 04
1
Running a column loop through the Moran.I function.
Dear R users,
I have two data frames that consist of statistical information for most
countries around the world. One dataframe consists of the latitude and
longitude ("coord.csv") of each country, while the other consists of 100's
of different attributes ("countryattri.csv") for each country (like, GDP,
Population, etc.). The data is organized with a header and then