Displaying 20 results from an estimated 44 matches for "38.5".
Did you mean:
3.5
2007 Jun 19
1
Linear model predictions, differences in class
Hi,
I am using R to fit statistical models to data were the observations are
means of the original data. R is used to calculate the mean before fitting
the model. My problem is: When R calculates the means using tapply, the
class of the means differs from the class of the original data, which gives
me trouble when I want to use the original data to calculate model
predictions. Here is a simple
2013 Jul 17
2
error message in gev
Hi r-users,
I would like to use gev and my data (annual rainfall ) is as follows:
> head(dat,20) A B C D E F G H I J
1 45.1 41.5 58.5 50.1 46.0 49.1 37.7 49.1 59.8 54.0
2 50.3 39.8 49.4 56.4 49.4 48.8 42.1 49.8 49.4 58.3
3 41.7 39.3 44.6 39.1 35.7 41.5 40.8 40.8 38.5 45.6
4 50.7 33.9 48.4 28.2 35.5 39.1 61.4 17.0 30.7 38.3
5 39.3 30.6 46.9 23.8 25.8
2012 Feb 29
2
function for filtering and deleting vector entries
Dear helpers
I have two data sets saved as vectors (temperature and velocity). Now I need
to "take out" a span of temperature and its corresponding velocity in the
other vector. How can I achieve that?
I tried to write a function,which takes a vector entry and then decides
wether to delete the temperature entry or not and simultaneously doing so
with same entry in the velocity
2010 Sep 20
2
invalid 'row.names' length error when running scatterplots or plot in R Commander
Hello,
I teach statistics and use R Commander for teaching. I have 2 students
out of 169 that can't get scatterplots or plot to work. I have had them
update packages, restart R/R Commander/their computers and even
reinstall R/R Commander. One is using Windows 7 on a new pc and the
other is a pc user (not sure the OS). They are both using R2.11.1 and R
Commander 1.6-0.
The data look like
2013 Mar 12
2
split data into columns from dataframe
Dear r-users,
Originally my data is in notepad. I use data.frame(...) to convert the data into columns but it has no header. The data below is what I got in R. I would like to extract these data:
19710629 39.3 19701126
19720629 33.8 19720517
...
when I use data2_30min[1, cbind(1,3,5)] command the result is NULL.
Then I tried data2_30min[1], it gives me the whole set of
2012 Jul 06
4
differences between survival models between STATA and R
Dear Community,
I have been using two types of survival programs to analyse a data set.
The first one is an R function called aftreg. The second one an STATA
function called streg.
Both of them include the same analyisis with a weibull distribution. Yet,
results are very different.
Shouldn't the results be the same?
Kind regards,
J
--
View this message in context:
2004 Oct 06
3
read.delim problem with trailing spaces
I'm trying to read a comma delimited dataset that uses '.' for NA. I
found that if the last field on a line was a missing '.'
it was not read as NA, but just a '.', and the life variable was made a
factor. The data looks like this,
income,imr,region,oilexprt,imr80,gnp80,life
Afghanistan,75,400.0,4,0,185.0,.,37.5
Algeria,400,86.3,2,1,20.5,1920,50.7
2013 Jan 13
1
Extract data in word pad
Dear r-users,
I have saved data in word pad. I would like to extract certain part of data only, for example
19710629 080000(PARTIAL) 39.3 at interval beginning 19701126 010326
19720629 080000(PARTIAL) 33.8 at interval beginning 19720517 144507
19730629 080000(PARTIAL) 32.2 at interval beginning 19720910 135747
and so on...
The original data set are given below:
2006 Jan 24
2
txfax application problem
Nobody seems to use txfax or does nobody have any problems with it?
I have sent mails to most lists and get no reply.
I cannot get a fax to go through with txfax.
I use a call file as a test and all I get on the receiving fax is a bunch of vertical lines.
my call file is:
Channel:Srx/gout/4658158
MaxRetries: 0
WaitTime: 20
Application:txfax
Data:/etc/asterisk/testfax.tif|caller|debug
FYI
2011 Nov 05
1
acf?
I started to check what I thought I knew with autocovariance and it doesn’t
jive with the the calculations given by ‘R’. I was wondering if there is
some scaling or something that I am not aware of.
Take the example
Ø d <- 1:10
Ø (a <- acf(d, type="covariance", demean=FALSE, plot=FALSE))
Autocovariances of series ‘d’, by lag
0 1 2 3 4 5 6
2013 Feb 21
1
remove rows in data frame by average
Dear all,
I have a data frame, which looks like this:
Subject | Block | Trial | Feature1 | Feature2 ....
1 | 1 | 1 | ... | ...
1 | 1 | 2 | ... | ...
1 | 2 | 1 | ... | ...
1 | 2 | 2 | ... | ...
1 | 3 | 1 | ... | ...
...| ...| ...| ... | ...
Can I remove the "Trial" column by averaging all the rows and without using
a "for loop"?
At the end my data frame should look like
2009 Nov 16
1
lmomco package and confidence limits?
Hello,
I am using the lmomco package (lmom.ub and pargev) to compute the GEV
parameters (location, scale, and shape), which are used to estimate
return values. I was wondering how/if I can calculate upper and lower
confidence (CI_u, CI_l) intervals for each return frequency using the
GEV parameters to fill-in the table below?
Xi (location) = 35.396
Alpha (scale) = 1.726
Kappa (shape) =
2008 Jan 01
3
if statement problem
Hi All,
I have a small dataset named das (43 cases) in which I am trying to
create a binary outcome (1/0) based on the following code:
if (das$age>65 && das$bmi>30) {das$danger<-1} else das$danger<-0
I am setting a flag called 'danger' to 1 of the subject is over 65
and has a BMI > 30.
I find that my statement evaluates the first record in the data.frame
and
2009 Jan 04
1
Lattice xyplot help please.
Hi -
I am not R expert and I would appreciate your time if you can help me
about my xyplot question.
I would like to add text (p-value) in a 4 panels xyplot. I thought
panel = function{} should work but I am not sure where I did it wrong.
The error message from the following code is
"Argument subscripts is missing with no default values"
xyplot(GLG ~ PD | factor(TRT) , groups =
2013 Jun 12
1
Question on Simple Repeated Loops
Dear R-User,
Appreciate any helps. It looks simple, but I don't have a clue.
Given that I have a dataframe of tree population with three variables:
sp=species ,
d0=initial_size
grow=growth increment from initial size per year
How can I calculate the future growth increment of each tree for the next 3 years.
The following Rscript was written,
#----------
a0 <-
2002 Apr 19
2
out of memory in build_hash_table
I recently installed rsync 2.5.5 on both my rsync server and client being
used. I installed the latest version because I was having problems with
rsync stalling with version 2.4.6 (I read that 2.5.5 was supposed to clear
this up or at least give more appropriate errors). I am still having
problems with rsync stalling even after upgrading to 2.5.5. It only stalls
in the "/home" tree
2013 Jan 02
4
list of matrices
dear useRs,
i have a list containing 16 matrices. i want to calculate the column mean of each of them.
i tried
>sr <- lapply(s,function(x) colMeans(x, na.rm=TRUE))
but i am getting the following error
>Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric
can it be done in any other way? and why i am getting this error??
thanks in advance..
elisa
[[alternative
2012 Oct 18
1
Temperature on Poweredge 2850
I am trying to get the temperature of a Poweredge 2850 with CentOS 6.3
on it. Has anybody on this list done this successfully? Thanks
-Surya
PS: Apologies for cross posting if you are on the Poweredge list.
--
Surya Saha
Department of Plant Pathology
and Plant-Microbe Biology
Cornell University, NY, USA
http://www.linkedin.com/in/suryasaha
2017 Oct 31
0
Final models from caret's train function
Using caret on the Titanic data from Kaggle, I tried various models,
including rfRules which produces a model, partly described as such:
> caret.rfRules.cv$finalModel
$model
len freq err
[1,] "2" "0.0368" "0"
[2,] "2" "0.032" "0.05"
[3,] "2"
2008 Nov 29
0
Error in check(itp) : object does not represent a K sample problem with censored data
Hello,
I have two questions regarding a survival analysis I have been
working on. Below is the code to date.
The variables:
1) recidivism$intDaysUntilFVPO are the number of days before an
violent offence was committed - if no offence was committed than the
days between court hearing and end of data collection was recorded.
2) recidivism$intDaysUntilFNVPO are the number of days before a