Displaying 20 results from an estimated 6000 matches similar to: "Manipulating code?"
2012 Aug 13
1
R-help question
Hi there,
I have subscribed to R-help but am not sure how to view or post questions? I think this is the right way.
I am planning on doing a multivariate regression investigating the relationship between depression (a continuous variable) and social support variables (mostly continuous, some categorical) among older people. I have a number of demographic and health-related variables that I am
2007 Sep 19
2
By() with method = spearman
I have a data set where I want the correlations between 2 variables
conditional on a students grade level.
This code works just fine.
by(tmp[,c('mtsc07', 'DCBASmathscoreSPRING')], tmp$Grade, cor,
use='complete', method='pearson')
However, this generates an error
by(tmp[,c('mtsc07', 'DCBASmathscoreSPRING')], tmp$Grade, cor,
use='complete',
2020 Feb 11
3
[v 2.3.4.1][quota] recalculation
Hello,
I can't find the information on the wiki :(
When is the quota recalculated after a mail deletion ?
For instance, I am running low of storage and I use Thunderbird to
delete large mail. I only notice a recalculation when I quit
Thunderbirdb and I relaunch it.
Even, with doveadm CLI, as long as Thunderbird is not disconnected on
the client side, the server didn't recalculate the
2011 Jan 10
4
Meaning of pterms in survreg object?
I am trying to model survival data with a Weibull distribution
using survreg. Units are clustered two apiece, sometimes receiving
the same treatment and sometimes opposing treatment.
2008 Jul 13
3
initialize a factor vector
What is the least surprising way of initializing a factor with
predefined levels and with length 0?
as.factor(c("eins", "zwei", "drei"))[FALSE]
does the job but looks a bit weird.
--
Johannes H?sing There is something fascinating about science.
One gets such wholesale returns of conjecture
mailto:johannes at
2010 Oct 25
2
Text wrapping in R
I am about to give an introduction to R to some clinical data managers
used to SAS. There is already a lot of material in printed form and
on the web that paves the way. What I haven't found so far are text
wrapping capabilities in setting tables in raw text as in SAS PROC
REPORT.
At the moment i would direct them at producing HTML output from R
and pipe the result through lynx. Coming from
2010 Sep 30
2
Sweave and LaTeX beamer class
I am failing to uncover Sweave chunks step by step using the LaTeX beamer
class.
The following minimal example:
\documentclass{beamer}
\usepackage{Sweave}
\begin{document}
\begin{frame}[fragile]
In the year \uncover<2->{25}\uncover<3->{\Sexpr{5*5}}
\uncover<4->{
<<echo=TRUE, print=TRUE>>=
5*5*101
@
}
\end{frame}
\end{document}
leads to an error message when
2009 Mar 21
1
libRlapack.so not found
Whenever I try to load the Matrix package, I get the following error
message:
libRlapack.so: cannot open shared object file: No such file or directory
A file with that name is indeed not on the hard disk.
I am using the R version which comes with Ubuntu Hardy Heron LTS. Here
is the output of R.Version():
R.Version()
$platform
[1] "i486-pc-linux-gnu"
$arch
[1] "i486"
$os
[1]
2011 Jan 05
1
Comparing fitting models
Dear all,
I have 3 models (from simple to complex) and I want to compare them in order to
see if they fit equally well or not.
From the R prompt I am not able to see where I can get this information.
Let´s do an example:
fit1<- lm(response ~ stimulus + condition + stimulus:condition, data=scrd)
#EQUIVALE A lm(response ~ stimulus*condition, data=scrd)
fit2<- lm(response ~ stimulus +
2008 Jul 27
4
Object-oriented programming in R for Java programmers?
Hi,
I was wondering if anybody might have a reference for
me: My R code is growing and getting more and more
confusing. Thus, I figure it's time to switch to
object-oriented again. I have done oo programming in
C++ and Java before but the first few tutorial on R oo
were a bit confusing for me.
Is there any brief tutorial on oo programming in R
especially for people who have done oo in Java
2011 Jan 05
2
Problem with 2-ways ANOVA interactions
Dear All,
I have a problem in understanding how the interactions of 2 ways ANOVA work,
because I get conflicting results
from a t-test and an anova. For most of you my problem is very simple I am sure.
I need an help with an example, looking at one table I am analyzing. The table
is in attachment
and can be imported in R by means of this command:
scrd<-
2013 Feb 25
1
creating variable that codes for the match/mismatch between two other variables
Dear all,
I have got two vectors coding for a stimulus presented in the current trial (mydat$Stimulus) and a prediction in the same trial (mydat$Prediciton), respectively.
By applying an if-conditional I want to create a new vector that indicates if there is a match between both vectors in the same trial. That is, if the prediction equals the stimulus.
When I pick out some trials randomly, I get
2005 Dec 01
1
LME & data with complicated random & correlational structures
Dear List,
This is my first post, and I'm a relatively new R user trying to work out a
mixed effects model using lme() with random effects, and a correlation
structure, and have looked over the archives, & R help on lme, corClasses, &
etc extensively for clues. My programming experience is minimal (1 semester
of C). My mentor, who has much more programming experience, but a comparable
2007 Jun 25
3
quota calculating
Hey everyone,
Currently where I work we use qmail. Every time a message is delivered,
qmail seems to walk through the user's entire maildir in order to
calculate quota usage. Delivering messages simultaneously to just a few
users who are allowed large maildirs (1-2GB) will bring our servers to
their knees. Which brings me to dovecot. I use dovecot whereever I can,
but haven't yet
2010 Jun 28
6
Basic question - more efficient method than loop?
I'm guessing there's a more efficient way to do the following using the index
features of R. Appreciate any thoughts....
for (i in 1:nrow(dbs1)){
if(dbs1$Payor[i] %in% Payor.Group.Medicaid) dbs1$Payor.Group[i] =
"Medicaid"
if(dbs1$Payor[i] %in% Payor.Group.Medicare) dbs1$Payor.Group[i] =
"Medicare"
if(dbs1$Payor[i] %in% Payor.Group.Commercial)
2010 Feb 10
3
Novel (Maybe?) Visualizations
I'm interested in using R's plotting capabilities to try to generate a graph showing the relationship/pairing frequency of words appearing in a block of unstructured text. I don't have a specific algorithm or approach in mind, just looking to portray text in an interesting fashion. The output I'm hoping for is something like the following called a "Phrase Network":
2010 Jun 13
1
Pairwise cross correlation from data set
Dear list,
Following up on an earlier post, I would like to reorder a dataset and
compute pairwise correlations. But I'm having some real problems
getting this done.
My data looks something like:
Participant Stimulus Measurement
p1 s`1 5
p1 s`2 6.1
p1 s`3 7
p2 s`1 4.8
p2
2006 May 11
2
greco-latin square
Hi,
I am analyzing a repeated-measures Greco-Latin Square with the aov command.
I am using aov to calculate the MSs and then picking by hand the appropriate
neumerator and denominator terms for the F tests.
The data are the following:
responseFinger
mapping.code Subject.n index middle ring
little
----------------------------------------------------------------------------
1 1
2007 Aug 02
1
ggplot2 qplot and add
Hi there,
I have some simple frequencies I want to plot into one graph. I had it
working, and now I can't figure out whats going wrong. All the data is
stored in a dataframe, and i finally managed to order the factor correctly!
Each column is a variable and contains integers for the same set of values
in the column that contains the headers for each row (graphLabels).
So, I get the data
2011 Jan 08
1
Anova with repeated measures for unbalanced design
Dear all,
I need an help because I am really not able to find over internet a good example
in R to analyze an unbalanced table with Anova with repeated measures.
For unbalanced table I mean that the questions are not answered all by the same
number of subjects.
For a balanced case I would use the command
aov1 = aov(response ~ stimulus*condition + Error(subject/(stimulus*condition)),
data=scrd)