Displaying 20 results from an estimated 1400 matches similar to: "Invert the sign of a number"
2009 Dec 02
4
Finding cases in one subset that are closet to another subset
Good afternoon
Running R2.10.0 on Windows
I have a data frame that includes (among much else) a factor (In_2006) and a continuous variable (math_3_4). I would like to find the 2 cases for In_2006 = 0 that are closest to each case where In_2006 = 1.
My data looks like
In_2006 math_3_4
0 55.1
1 51.6
1 18.1
1 26.6
1 14.1
2009 Nov 02
7
qqplot
Hi,
We could use qqplot to see how two distributions are different from each other. To show better how they are different (departs from the straight line), how is it possible to plot the straight line that goes through them? I am looking for some thing like qqline for qqnorm. I thought of abline but how to determine the slope and intercept?
Best wishes,
Carol
2009 Oct 21
3
Missing data and LME models and diagnostic plots
Hello
Running R2.9.2 on Windows XP
I am puzzled by the performance of LME in situations where there are missing data. As I understand it, one of the strengths of this sort of model is how well it deals with missing data, yet lme requires nonmissing data.
Thus,
m1.mod1 <- lme(fixed = math_1 ~ I(year-2007.5)*TFC_,
data = long,
random =
2009 Oct 22
4
Bayesian regression stepwise function?
Hi everyone,
I am wondering if there exists a stepwise regression function for the
Bayesian regression model. I tried googling, but I couldn't find anything.
I know "step" function exists for regular stepwise regression, but nothing
for Bayes.
Thanks
--
View this message in context: http://www.nabble.com/Bayesian-regression-stepwise-function--tp26013725p26013725.html
Sent from
2009 Oct 21
1
Question on mixed effect models with LME
Good afternoon
Using R 2.9.2 on a machine running Windows XP
I have a longitudinal data set, with data on schools and their test scores over a four year period. I have centered year, and run the following
m1.mod1 <- lme(fixed = math_1 ~ I(year-2007.5)*TFC_,
data = long,
random = ~I(year-2007.5)|schoolnum,
na.action = "na.omit")
where
2009 Nov 08
1
Windows 7 editor - I can't make RWinEdt work
Good morning
I just got a new computer with Windows 7. R works fine, but the editor I am used to using "RWinEdt" does not. I did find one blog post on how to get RWinEdt to work in Windows 7, but I could not get those instructions to work either.
Is there a patch for RWinEdt?
If not, is there another good R editor that works under Windows 7?
I tried RSiteSearch with various
2009 Nov 04
1
Variable selection in NLME or LME4
Good morning
I am learning about NLME and LME4, using Pinheiro and Bates and other materials from Douglas Bates, but I have not seen anything on how to do variable selection sensibly in this type of model.
In OLS regression, I frequently use the lasso, but googling did not reveal a method for lasso with mixed models.
Most of the material I've seen on these packages is about models with very
2009 Oct 22
3
Boxplot with grouped data
Dear All,
Is there some way of drawing a boxplot, with R, when one does not have
the original continuous data, but only the data grouped in classes?
The function boxplot() can only deal with original data.
Thanks in advance,
Paul
2009 Dec 02
2
Histogram probabilities >1 ????!!!
Hi everybody,
well, I definitely don't understand anything.
Why the hist function with freq=FALSE gives such a strange result???
R <- c(-1.10, 0.79, -1.17, -0.53, -0.26, -0.22, 0.29, -0.26, -0.26, 0.39)
hist(R, freq=FALSE, breaks=10)
Thanks everybody
[[alternative HTML version deleted]]
2008 Jul 11
1
Difficultes with grep
Hello everybody!
I'm using R and I have a little problem about function "grep". I 've got to
make a new function in which "grep" is present. So the first argument of
"grep" is the string we want to find,ok..but in this case I define a
function "x" before , x receives an argument in a object "name" (for
instance), then inside function
2010 Jun 26
0
Problem: RWinEdt and Windows 7
Hi I can install RWinEdt if I start R with administrator rigths, but it
does not paste my code to the console. I found advice in the link below
how to manage the problem, but it did not work, any other idea?
http://yusung.blogspot.com/2009/01/rwinedt-and-windows-vistawindow-7.html
Thanks a lot,Johannes >From: Uwe Ligges
<ligges_at_statistik.tu-dortmund.de>
>Date: Sun, 08 Nov 2009
2009 Jun 14
6
a proposal regarding documentation
Proposal
That a new mailing list be established
that pertains exclusively to R documentation.
The purpose of the list would be to discuss
weak sections of the documentation and
establish fixes for those weak spots.
Pro
If it works, there would be better documentation.
It would be an excellent opportunity for newish
and/or less technical people to contribute to R.
In some respects such people
2011 Jan 03
4
how to invert the axes in the wireframe() plot
Dear List,
I am using the wireframe function in the lattice package, and I am wondering if it is possible to invert the default axes orientation for x and y axes... what parameter should I look for?
Best regards,
Simone Gabbriellini
2007 Aug 13
3
invert 160000x160000 matrix
Can R invert a 160000x160000 matrix with all positive numbers? Thanks a lot!
2005 Nov 16
2
invert y-axis in barplot
Hi!
This is probably a very trivial question. Is there an easy way to invert the
y-axis (low values on top) when using the function barplot()?
Thanks,
Jörg
[[alternative HTML version deleted]]
2010 Sep 01
2
invert order
Dear R-help list users,
I have a huge vector of numbers, how I can invert orden?
For example
x <- 1:10000000
I would like to obtain
x_r <- 10000000:1
Thanks,
Sebastian.
2007 Aug 04
2
Invert Likert-Scale Values
Hi!
I am using R to process some community survey data. Several item responses are recorded via a 7-point Likert-Scale. As I have coded the responses, 1 represents high agreement, and 7 high disagreement. This of course impacts the coefficients in a linear regression (of example agreement to self-perception measures on housing satisfaction). For some purposes, in order to make the coefficients
2010 Nov 21
3
Can't invert matrix
Hi,
I'm trying to use the solve() function in R to invert a matrix. I get
the following error, "Lapack routine dgesv: system is exactly singular"
However, My matrix doesn't appear to be singular.
[,1] [,2] [,3] [,4]
[1,] 0.99252358 0.93715047 0.7540535 0.4579895
[2,] 0.01607797 0.09616267 0.2452471 0.3088614
[3,] 0.09772828 0.58451468 1.4907090
2010 Aug 10
6
How to invert a list ?
Dear list,
I have a list, as follows :
a <- 5
names(a) <- "a"
b <- 9
names(b) <- "b"
c <- 15
names(c) <- "c"
x <- list("i" = a, "j" = b, "j" = c)
I want to invert the list, like this :
$a
i
5
$b
j k
9 15
I do not find a clean solution.
Could anyone give me elegant ideas ?
Thanks in advance,
Carlos
2005 May 30
3
how to invert the matrix with quite small eigenvalues
Dear all,
I encounter some covariance matrix with quite small eigenvalues
(around 1e-18), which are smaller than the machine precision. The
dimension of my matrix is 17. Here I just fake some small matrix for
illustration.
a<-diag(c(rep(3,4),1e-18)) # a matrix with small eigenvalues
b<-matrix(1:25,ncol=5) # define b to get an orthogonal matrix
b<-b+t(b)
bb<-eigen(b,symmetric=T)