Displaying 20 results from an estimated 1000 matches similar to: "thousand separator (was RE: weight)"
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
Hi,
I got this working. i had to get rid of an underscore in one of my
variable names to work on RWeb.
Thanks for your help though!!
Natalie
__________________
I think you have to be either honest or careful, since the code you
submitted to Rweb is different with your former code! Why the
condition was changed from "test<-subset(X, GRADE == 7 & Y_Q10A < 9)"
to
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi,
How are you? I have a quick question.... I have code that works perfectly
with R desktop, but does not work with RWeb. Could you please tell me how
to modify the code below so it will work with RWeb?
#Read in txt file
happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1)
#Subset the txt file to only include certain values
test<-subset(happyguys, GRADE == 7
2007 Apr 27
5
weight
Hi,
I have the file below called happyguys. It is a subset of data. How do I
apply the weight variable (WTPP) to this file? Can i just multiply each
column (except the first column because it is a record id) by WTPP? If the
answer is yes, how do I multiply one variable name by another?
Thanks,
Nat
PROV REGION GRADE Y_Q10A WTPP
83 48 4 7 2 342233324020
115
2007 Apr 27
0
like SPSS
Hi,
I've written code to extact a pumf file in R, subset it, and weight it
like you would do in SPSS. My code is below & it works great. My question
is: how do i then calculate the frequencies of smokers (1) versus
non-smokers (2) after having weighted my file? or even the process that
SPSS is going through to aggregate the data?
Thanks,
Nat
Here is my code:
2007 Apr 26
4
select if + other questions
Hi,
i am trying to read a .txt file, do a couple of select if statements on my
data, and then finally use the ?table function to get frequency counts on
the data. Specifically, i am looking at answering the following question:
What is the frequency of Grade 7 students in the province of Alberta who
are smokers?
I am having some problems:
1)i cannot get the column names to show up when print
2007 May 03
0
unscrible pls
On 5/2/07, r-help-request@stat.math.ethz.ch <
r-help-request@stat.math.ethz.ch> wrote:
>
> Send R-help mailing list submissions to
> r-help@stat.math.ethz.ch
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://stat.ethz.ch/mailman/listinfo/r-help
> or, via email, send a message with subject or body 'help' to
>
2011 Oct 05
2
Subsetting a data frame with multiple values and exclusions.
Hi all,
I realise that the convention is to provide a working example of my problem
but the data are of a sensitive nature so I'm not able to do that in this
case.
I need to query a database for multiple search terms:
db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1,
2, 1.3, 3), test2 = c(56L, 27L, 58L, 2L), test3 =
2012 Jul 17
1
Stats question: Comparison of the same individuals during two exposure times
Hi,
I'm hoping that someone will be able to help. I would like to compare how
covariates associate with the risk of a binary outcome during two periods.
Period 1 will be non-exposure to a treatment and period 2 will be exposure
to a treatment. The same individuals will be examined in each group but I
want to be able to compare the association of certain covariates between the
two groups to
2005 Jul 25
1
Fortran function name not in load table
Using R 2.0.1 on Windows XP, I am getting an error
msg:
Error in .Fortran("conic", nxy = nxy, npt = npt, CP =
cp, EP1 = ep1, EP2 = ep2, :
Fortran function name not in load table
I am wondering if there is a way to see what function
names are in the load table? Maybe the function name
has been altered?
The first thing I do in my analysis script is to load
a DLL, conic.dll,
2011 Dec 05
1
Subsetting a data frame
Hi R users,
I really need help with subsetting data frames:
I have a large database of medical records and I want to be able to match
patterns from a list of search terms .
I've used this simplified data frame in a previous example:
db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1,
2, 1.3, 3), test2 = c(56L, 27L, 58L,
2011 Mar 10
2
within group sequential subtraction
Hi Everyone,
I would like to do sequential subtractions within a group so that I know the
time between separate observations for a group of individuals.
My data:
data <- structure(list(group = c("IND1", "IND1", "IND2",
"IND2", "IND2", "IND3", "IND4", "IND5",
"IND6", "IND6"), date_obs =
2001 Jul 25
2
using compiled fortran in R
Hi,
I would like to use a Fortran subroutine in R. I have checked the R
docs and Newsletter,
but..., I am unable to load an object file into R.
The steps I have taken are (on Debian Linux/recent Intel-type chip ):
1. g77 -c hello.f
to create hello.o
2. mymachine> R
to start R
3. > dyn.load("hello.o")
at which point I am getting the error msg:
Error in
2011 Jul 25
1
Cox's regression analysis with Left truncated data
Hi,
I have a fairly simple question. I would like to use the survival package
to perform an analysis on data where an event can have occurred before
individuals were recruited into a study. I'm not sure how to do this using
the Surv() function. I would have a date of an event and then the enrolment
date would be after that. How do I put these two dates into the survival
function?
Thank
2005 Aug 01
1
Moving folder issue
Hi,
My wife who has thousands of IMAP boxes keeps getting errors when moving
mailboxes in Thunderbird in Windows. I am using the same server
(dovecot test 77) with Thunderbird in Linux and don't see the problem.
What happens is she moves the mail box and Thunderbird comes up with an
error saying it can't access the old box (odd!?). It has however
completed the move. The following
2005 Feb 25
2
407 Proxy Authentication Required
Hi everybody:
I configured my Asterisk to register to my VoIP provider, and I can make
outgoing calls, but I can't receive any calls with it.
I used Ethereal to sniff the activity of it, and I found something that
might be causing the problem:
When my provider's gateway does the "Request: INVITE
mynumber@my-voip-provider.tld ..." my Asterisk asks for "Status: 407 Proxy
2006 Dec 04
2
Nested for loop
Hi all,
Does anybody know whether one can nest IF statement in multiple FOR loops ?
According to results of my code, only the first iteration of each loop is
performed...
Thanks,
Regards,
Natalie
[[alternative HTML version deleted]]
2010 May 07
2
glm contrasts
Hi,
I have some data on the effect of cycle shape (categorical) and
frequency (continuous) on the efficiency of muscle contraction. My
minimum adequate model is:
m15<-glm(efficiency~cycle.shape*freq, family=quasipoisson)
However, I wish to know where significant differences lie between
specific combinations of treatments. I guess I want an equivalent of a
post hoc test following an
2010 Sep 21
2
General Alawar games issue
See bug 23374. Originally, this was an issue raised for one particular game. But my experiences with other games from the same company indicate that this may be a more widespread problem for their games.
The original poster tried one of their "Strange Cases" games. I've tried a "Natalie Brooks" and an "Alabama Smith" adventure. Each keeps coming up with the
2009 Mar 06
1
Thousand separator on axis
Is there an easy way to add a thousand separator mark on the axis of a
plot? The best solution I've found so far is the following:
y <- seq(0, 100000, 10000)
plot(y, yaxt = "n", ylab = "")
axis(2, at = y, labels = formatC(y, big.mark = " ", format = "d"), las=2)
But that seems like quite a hassle to do every time around. Is there a way
to get the
2011 Dec 09
2
Error using function MVN in package MCLUST: Fortran symbol name not in DLL for package
Hi All,
I need to fit a mutlivariate normal model to a dataset in order to obtain the mean and covariance parameters. I see that the MVN function in the MCLUST package can do this, however when I try to run even the simplest example provided in the documentation, as below, I get the following error:
n <- 1000
set.seed(0)
x <- rnorm(n, mean = -1, sd = 2)
mvn(modelName = "X", x)