Displaying 20 results from an estimated 300 matches similar to: "Boxplot from matrices"
2013 Mar 12
5
extract values
Hello all!
I have a problem to extract values greater that for example 1820.
I try this code: x[x[,1]>1820,]->x1
Please help me!
Thank you!
The data structure is:
structure(c(2.576, 1.728, 3.434, 2.187, 1.928, 1.886, 1.2425,
1.23, 1.075, 1.1785, 1.186, 1.165, 1.732, 1.517, 1.4095, 1.074,
1.618, 1.677, 1.845, 1.594, 1.6655, 1.1605, 1.425, 1.099, 1.007,
1.1795, 1.3855, 1.4065, 1.138, 1.514,
2007 Jul 14
0
ts model challenge (transfer function)
Dear useRs,
I am trying to model a time series with a transfer function. I think
it can be put into the ARMA framework, and estimated with the 'arima'
function (and others have made similar comments on this list). I have
tried to do that, but the results have so far been disappointing.
Maybe I am trying to make 'arima' do something it can't...
The data are time series of
2013 Mar 13
2
merge datas
Hello all!
I have a problem with R. I try to merge data like this:
structure(c(2.1785, 1.868, 2.1855, 2.5175, 2.025, 2.435, 1.809,
1.628, 1.327, 1.3485, 1.4335, 2.052, 2.2465, 2.151, 1.7945, 1.79,
1.6055, 1.616, 1.633, 1.665, 2.002, 2.152, 1.736, 1.7985, 1.9155,
1.7135, 1.548, 1.568, 1.713, 2.079, 1.875, 2.12, 2.072, 1.906,
1.4645, 1.3025, 1.407, 1.5445, 1.437, 1.463, 1.5235, 1.609, 1.738,
1.478,
2005 Jun 17
4
3D Scatter Plot
Hello:
I would like to be able to do a 3D scatter plot from 3 variables, 2
independent and 1 dependent. The closest R function I could find for
this is "cloud". However cloud uses, as input, a matrix where the value
of each matrix element is the dependent variable value at that matrix
coordinate. My problem is that the independent variable values are
floating point and can be of
2012 Feb 06
1
Creating time series (ts) object
Hi everyone.
I have have a dataset with daily measurement from January 1st of 1966 up to
December 31th of 2011.
Here's the first part of the data:
Date SLEV
1/1/1966 1.086
1/2/1966 1.079
1/3/1966 1.133
1/4/1966 1.261
1/5/1966 1.391
1/6/1966 1.571
1/7/1966 1.728
1/8/1966 1.823
1/9/1966 1.97
1/10/1966 1.804
1/11/1966 2.02
1/12/1966 2.017
1/13/1966 1.86
1/14/1966 1.96
1/15/1966 1.813
1/16/1966
2009 Apr 14
3
scatterplot3d
Dear R-help,
I am having trouble with your scatterplot3d program. For help with this
problem I was directed to your address by Martin Maechler at "
r-core-bounces at r-project.org." I'm also sending a CC to "
r-core-owner at r-project.org" as I'm not yet certain of the proper address to
use for this.
I have R version 2.8.1 and have downloaded 'scatterplot3d.'
2018 May 31
2
mysterious rounding digits output
Well pointed out, Jim!
It is infortunate that the documentation for options(digits=...)
does not mention that these are *significant digits* and not
*decimal places* (which is what Joshua seems to want):
"?digits?: controls the number of digits to print when
printing numeric values."
On the face of it, printing the value "0,517" of 'ccc' looks
like printing 4
2005 Apr 19
3
Help with predict.lm
Hi
I have measured the UV absorbance (abs) of 10 solutions of a substance at
known concentrations (conc) and have used a linear model to plot a
calibration graph with confidence limits. I now want to predict the
concentration of solutions with UV absorbance results given in the new.abs
data.frame, however predict.lm only appears to work for new "conc" variables
not new "abs"
2018 May 31
0
mysterious rounding digits output
>>>>> Ted Harding
>>>>> on Thu, 31 May 2018 07:10:32 +0100 writes:
> Well pointed out, Jim!
> It is infortunate that the documentation for options(digits=...)
> does not mention that these are *significant digits*
> and not *decimal places* (which is what Joshua seems to want):
Since R 3.4.0 the help on ?options *does* say
2018 May 31
0
mysterious rounding digits output
Hi Joshua,
Because there are no values in column ddd less than 1.
itemInfo[3,"ddd"]<-0.3645372
itemInfo
aaa bbb ccc ddd eee
skill 1.396 6.225 0.517 5.775 2.497
predict 1.326 5.230 0.462 5.116 -2.673
waiting 1.117 4.948 NA 0.365 NA
complex 1.237 4.170 0.220 4.713 5.642
novelty 1.054 4.005 0.442 4.260 2.076
creative 1.031 3.561 0.362 3.689
2018 May 31
3
mysterious rounding digits output
R version 3.5.0 (2018-04-23) -- "Joy in Playing"
Platform: x86_64-pc-linux-gnu (64-bit)
options(digits=3)
itemInfo <- structure(list("aaa" = c(1.39633732316667, 1.32598263816667, 1.11658324066667, 1.23651072616667, 1.05368679983333, 1.03100737383333, 0.9630728395, 0.7483865045, 0.620086646166667, 0.5411017985, 0.496397607833333, 0.459528044666667, 0.427877047833333,
2014 Sep 01
1
Correlation Matrix with a Covariate
R Help -
I'm trying to run a correlation matrix with a covariate of "age" and will
at some point will also want to covary other variables concurrently.
I'm using the "psych" package and have tried other methods such as writing
a loop to extract semi-partial correlations, but it does not seem to be
working. How can I accomplish this?
library(psych)
> set.cor(y =
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 Apr 11
2
Read the data from a text file and reshape the data
I have a data set for different time intervals. The data has three comment
lines before data for each time interval. For each time interval there are
500 data points. I want to change the dataset such that I have the following
format:
t1 t2 t3 ................
0.00208 0.00417 0.00625 .................
a1 a2 a3 ...................
2005 Mar 16
2
how to draw xyplot figure like figure 4.18 of MASS (4th) ?
Dear All:
Could you please tell me how I can draw figure formatted like figure 4.18 of MASS (4th) with the attached data set?
Thanks
Zhongming Yang
---------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sample.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050316/abfdb85e/sample.txt
2010 Dec 30
4
perl code to remove newlines
Given an HTML file which looks like this:
--------- begin snippet ---------
<HTML
><HEAD
><TITLE
>We've Lied to You…</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Maximum RPM"
HREF="index.html"><LINK
REL="UP"
2008 Oct 15
2
Network meta-analysis, varConstPower in nlme
Dear Thomas Lumley, and R-help list members,
I have read your article "Network meta-analysis for indirect treatment
comparisons" (Statist Med, 2002) with great interest. I found it very
helpful that you included the R code to replicate your analysis;
however, I have had a problem replicating your example and wondered if
you are able to give me a hint. When I use the code from the
2010 May 21
2
plotting the following data
Hi,
I need to plot $time on the x-axis and $f on the y-axis for the following
data:
time f
0h 0.00
0.5h 0.54
1h 1.15
2h 2.33
4h 1.57
6h 2.19
18h 1.45
24h 1.79
I want the order of the data-points to be retained and the x-coordinates of
each of the 8 data-points to be equally spaced.
however, using plot($time, $f) completely scrambles the ordering of the
points.
Any
2009 Mar 08
2
plot confidence limits of a regression line - problem
hi,
I don't know what I am doing wrong,
but with that code;
x1 <- c(1.60, 0.27, 0.17, 1.63, 1.37, 2.00, 0.90, 1.07, 0.89, 0.43,
0.37, 0.59,
0.47, 1.83, 1.79, 0.90, 0.72, 1.83, 0.23, 1.97, 2.03, 2.19, 2.03, 0.86)
x2 <- c(1.30, 0.24, 0.20, 0.50, 1.33, 1.87, 1.30, 0.75, 1.07, 0.43,
0.37, 0.87,
1.40, 1.37, 1.63, 0.80, 0.57, 1.60, 0.39, 2.03, 1.90, 2.07, 1.93, 0.93)
model <-
2006 Jun 28
0
Fwd: add1() and anova() with glm with dispersion
> Hello,
>
> I have a question about a discrepancy between the
> reported F statistics using anova() and add1() from
> adding an additional term to form nested models.
>
> I found and old posting related to anova() and
> drop1() regarding a glm with a dispersion parameter.
>
> The posting is very old (May 2000, R 1.1.0).
> The old posting is located here.
>