Displaying 20 results from an estimated 2000 matches similar to: "SQL on R"
2009 Jul 03
2
Simple one
Just a quickly beginner's question.
I wanna find the mean only from the values from a column related to specific
values from another one. Like, theres a 'region' column, i want the mean of
the value on 'profit' column only from "south" sells from 'region' column
--
View this message in context: http://www.nabble.com/Simple-one-tp24329691p24329691.html
Sent
2009 Aug 03
2
Some SQL Challenges
Hi,
Im trying to complete a list of jobs using SQL Querries and some "if else"
commands but im stucked in some steps. Could any of you give me some help?
-in COLUMN1 change the format 20JAN2000:00:00:00 to 20JAN2000 and exclude
every row that date is different from 20.
-extract the first character in COLUMN2 and creat COLUMN3 with that value
ex:
COL2,COL3
135,1
461,4
247,2
-in every
2009 Mar 31
5
how to increase the limit for max.print in R
Hi All,
I am using DNAcopy package in R for copy number analysis of 500K chip.
The final output which I get from DNA copy is too big to be printed in a
file.
So I am getting an error as "reached getOption("max.print") -- omitted
475569 rows "
Can somebody please provide me the pointers with how to increase the limit
for max.print .
Thanks,
Pooja
DISCLAIMER\
2008 Oct 02
4
Load a program at the front end
I want to run a R program, prog.R, interactively. My question is, is
there a way I can start prog.R on the shell terminal when invoking R,
instead of using source() inside R?
TIA,
Gang
2009 Aug 20
1
problems with RODBC, sqlQuery
Hello,
Im trying to get a Oracle database to R, but I'm having problems with most
of SQL sintax. Suppose that Im trying to bring a table "TABLE" with columns
"COL1","COL2",.. from schema "SCHEMA". What am I doing wrong?
library(RODBC)
channel<-odbcConnect("xxx",uid="xxx",pwd="xxx")
sqlQuery(channel, "select * from
2009 Oct 01
5
How to use Subpopulation data?
Dear Helpers
I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.
H <- matrix(rnorm(100, mean=50000, sd=5000))
sampleframe=data.frame(type=c(rep("H",100)),value=c(H))
sampleframe
str=strata(sampleframe,c("type"),size=c(20,), method="srswor")
2009 May 13
2
Help with a cumullative Hazrd Ratio plot
Hi R-masters
I need help to make modified cumulative hazard ratio plot.
I need create a common plot but with the number of subjects in risk each
ticks times for two different groups in bottom of plot (I put one
example in attach).
Do you know a routine for this?
Is possible create a routine for this?
In this case with how commands?
Thanks in advance!
--
Bernardo Rangel Tura, M.D,MPH,Ph.D
2009 Sep 05
8
Color index in image function
Dear All,
I was looking for the color index in?image function,?such as from topo.colors(n) and etc. but still never found it. For instance, from the help menu.
###########################################
# Volcano data visualized as matrix. Need to transpose and flip
# matrix horizontally.
image(t(volcano)[ncol(volcano):1,])
# A prettier display of the volcano
x <- 10*(1:nrow(volcano))
y
2007 Nov 19
2
biplot
Hi,
I am wondering how to draw biplot with the same scales on both plots?
For example, if the two plots have much different scales, generally
the two x-y's are scaled so that the two plots are sitting in the
center automatically. How to disable this?
Thanks
--
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.
"Did you always know?"
"No, I did not. But I believed..."
2010 Jan 03
6
Help with function "fitdistr" in "MASS"
Hi, R users:
I want to fit my data into a normal distribution by using the command
"fitdistr" in "MASS".
I changed my data class from "ts" to "numeric" by
>class(mydata)="numeric"
but after using "fitdistr", I got the result below
>fitdistr(mydata,"normal")
mean sd
NA NA
(NA) (NA)
the help doc of
2009 Dec 02
5
Problem with "Cannot compute correct p-values with ties"
Dear All,
1. why did the problem happen?
2. How to solve it?
--
Best wishes,
Zhijiang Wang
--------------------------------------------
PHD Student
Room 212, Science buliding,
The International WIC Institute,
College of Computer Science and Technology,
Beijing University of Technology,
Beijing, China.
2004 Sep 06
4
Cox regression for prevalence estimates
Hello, I'm an MD working in an eye clinic. I'm learning by myself to use R
for use in my research works and for implementation in a software project.
There are some authors who recomends the use of Cox regression as a
substitute for Logistic regression (<a
href="http://www.biomedcentral.com/1471-2288/3/21.pdf"> Barros AJD, Hirakata
VN. BMCMedical Research Methodology, 2003;
2010 Sep 09
2
Calculating with tolerances
Dear list,
I am from an engineering background, accustomed to work with tolerances.
For example, I have measured
Q = 0.15 +- 0.01 m^3/s
H = 10 +- 0.1 m
and now I want to calculate
P = 5 * Q * H
and get a value with a tolerance +-
What is the elegant way of doing this in R?
Thank you,
Jan
2011 Feb 01
3
Matching patients
May I ask a clinical question? For a trial, we have a treatment group of small
size, say 30 patients. We want to selectmatching control patients from a bigger
group (100 patients) in terms of several clinical variables, such as age, tumor
stage etc. This practice is to select the closest matching set of control cases.
I wonder if R has any routine or package that can help with this problem.
2007 Aug 27
2
Sequential Rank Test
Hi R-Masters
I need use a sequential approach in serie of cases, but may data is not
normal.
If data is normal distribution is very easy create analysis using
likelihood ratio like of Wald test.
But in my case I need use a non-parametric test (Mann-Whitney).
I was use: RSiteSearch("sequential rank test") but not solve my
problem.
Do you know routine or package implement
2009 Feb 20
2
System of logistics Equations
Hi R-masters
I need yours help about a problema in one of may ongoing researchers.
In my research the subjects (20 in total) answer 60 questions (20 type
G, 20 type S and 20 type P).
Which questions is classified about 3 factor (2 level each) and the
subject score with 2 scale (not integer value is possible but rare): Val
range -7 to 7 and other Car range 1 to 7.
This a code to fake database
2008 Dec 12
1
How-To capture and handle errors with R
The following error occurs every now and then by calling a function of wmTSA package:
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1", "0")) :
invalid 'row.names' length
I would greatly appreciate some guidelines about how to catch such an error upon its occurrence and have it handled by my own routine
rather than letting R stop the currently run
2008 Jul 19
1
Resshufling algorithm (Thiago Souza)
An embedded and charset-unspecified text was scrubbed...
Name: n?o dispon?vel
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080719/d9bdfb5a/attachment.pl>
2008 Oct 09
1
interpreting Shapiro-Wilks test result
Hi all,
I am newbie in using R software and also doing statistical test. I want to know if my data in in normal distribution. I have 2 groups of data and I did calculate Shapiro Wilks using R software. Here is the results:
Group 1: W = 0.9206, p-value = 0.01683
Group 2: W = 0.9626, p-value = 0.4694
I am not quite sure what default confidence level (CF) is used in calculating Shapiro Wilks.
2007 Dec 09
1
CART analysis
I would like to know if is it possible implemet a partitioning tree
using a function like rpart, or mvpart, and with formula a glm-object
(as a logistic models) or a robust linear regression (as least sum of
absolute errors).
In this case, the appropriate "method" to use is "mrt"? Or another one?
Thanks,
Anna Maria Paganoni