Displaying 20 results from an estimated 500 matches similar to: "Help needed in R"
2008 Dec 29
3
Normal Curve
Dear ALL:
How I show the area under the normal curve for example for the following example:
Assume X has N(100,15). How to show the area corresponding to the probability:
P(90<X<110)
With many thanks
Abou
==========================
AbouEl-Makarim Aboueissa, Ph.D.
Assistant Professor of Statistics
Department of Mathematics & Statistics
University of Southern Maine
96
2009 Mar 30
1
Comparing Points on Two Regression Lines
Dear R users:
Suppose I have two different response variables y1, y2 that I regress separately on the different explanatory variables, x1 and x2 respectively. I need to compare points on two regression lines.
These are the x and y values for each lines.
x1<-c(0.5,1.0,2.5,5.0,10.0)
y1<-c(204,407,1195,27404313)
x2<-c(2.5,5.0,10.0,25.0)
y2<-c(440,713,1520,2634)
Suppose we need to
2007 Aug 16
3
Urgent Help needed
Dear All:
Urgent help is needed.
I have a data set in matrix format of three columns: X, Y and index of four groups (1,2,3,4). What I need to do is the following;
1- How I can subtract the sample mean of each group indexed 1,2,3,4 from the
corresponding data values of this group and create new columns say X-sample mean
and Y-sample mean? I tried to use the "tapply" but
2009 Aug 20
0
Canonical Discriminant Function Analysis
Dear R users:
Could you please help me out how to use R to get and interpret
Standardized discriminant functions and structure coefficients for sex,
Degree_Program, and Enrol_USM
Please find the data file at:
http://www.usm.maine.edu/~aaboueissa/Rhelps/Rhelps.html
data files are (xls file: dataforRxls or txt file: dataforRtxt)
Output looks like this table.
Standardized
2008 Dec 08
0
ARMA models
Dear ALL:
Could you please eamil me how to simulate Mixed Seasonal ARMA (p,q)x(P,Q)12 models [say ARMA(0,1)x(1,0)12 ]from R.
With many thanks.
Abou
==========================
AbouEl-Makarim Aboueissa, Ph.D.
Assistant Professor of Statistics
Department of Mathematics & Statistics
University of Southern Maine
96 Falmouth Street
P.O. Box 9300
Portland, ME 04104-9300
Tel: (207)
2017 Sep 12
2
Load R data files
Dear All:
It was saved, but there was a space somewhere. So it works for me now.
I do have another similar problem.
I saved an R data file
save(datahs0csv,file="
F:\Fall_2017\5-STA574\2-Notes\1-R\1-R_new\chapter4-Entering_Data/datahs0csv2
.rda")
*The new R data file "*datahs0csv2.rda*" is in the directory.*
I tried to load the file "" to R, but I got an error
2017 Sep 19
3
Graph f(x) = 1/x
Dear All: good morning
I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But
I am getting an error message. Please see below.
I am getting the error message: *Error in xy.coords(x, y, xlabel, ylabel,
log) : *
* 'x' and 'y' lengths differ*
x
x <- seq(-5, 5, 0.01)
y < 1/x
plot(x,y, type='l', xlim=c(-5, 5), ylim=c(-5, 5), xlab = "x",
2017 Sep 12
0
Load R data files
The object you load has the same name as the object you saved. In this case
datahs0csv and not the name of the file sans .rda
On Di., 12. Sep. 2017, 21:26 AbouEl-Makarim Aboueissa <
abouelmakarim1962 at gmail.com> wrote:
> Dear All:
>
>
> It was saved, but there was a space somewhere. So it works for me now.
>
> I do have another similar problem.
>
> I saved an R
2017 Dec 17
1
Auto Data in the ISLR Package
myAuto <- Auto[ grep("ford|toyota",Auto$name),]
myAuto$Make <- NA
myAuto$Make[grep("ford",myAuto$name)] <- "Ford"
myAuto$Make[grep("toyota",myAuto$name)] <- "Toyota"
Regards,
Eric
On Sun, Dec 17, 2017 at 11:58 AM, AbouEl-Makarim Aboueissa <
abouelmakarim1962 at gmail.com> wrote:
> Dear Eric:
>
> Thank you very much.
2017 Sep 24
3
Shift the normal curve to the top or near to the top of the histogram
Dear All:
One more thing.
I want to add the normal curve to the histogram. Is there away to stretch
the peak of the curve to the top of the histogram or at least near to the
top of the histogram.
Please see the code below.
Lizard.tail.lengths <- c(6.2, 6.6, 7.1, 7.4, 7.6, 7.9, 8, 8.3, 8.4, 8.5,
8.6,8.8, 8.8, 9.1, 9.2, 9.4, 9.4, 9.7, 9.9, 10.2, 10.4, 10.8,11.3, 11.9)
x<-seq(5,12, 0.001)
2017 Dec 17
4
Auto Data in the ISLR Package
myAuto <- Auto[ grep("ford|toyota",Auto$name),]
On Sat, Dec 16, 2017 at 10:28 PM, Bert Gunter <bgunter.4567 at gmail.com>
wrote:
> I did not care to load the packages -- small reproducible examples are
> preferable, as the posting guide suggests.
>
> But, if I have understood correctly:
>
> See, e.g. ?subset
>
> Alternatively, you can read up on
2017 Sep 12
3
Load R data files
Dear All:
I am trying to load an R data set, but I got the following message. Please
see below. The file is there.
setwd("F:/Fall_2017/5-STA574/2-Notes/1-R/1-R_new/chapter4-Entering_Data")
datahs0csv <- read.table("hs0.csv", header=T, sep=",")
attach(datahs0csv)
detach(datahs0csv)
rm(list=ls())
Then I tried to reload the data, but I got this error message. I
2017 Aug 16
3
Install package "diagram"
Dear All:
I am trying to install the package "diagram". It is in the list. But when I
selected the package to install it, it says:
Question: "would you like to use a personal library instead?"
I selected No.
Then it says
> utils:::menuInstallPkgs()
Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type
= type) :
'lib = "C:/Program
2017 Sep 20
2
Install the Package "ISwR"
Dear All: good morning
I am trying to install the "" package, but I am getting this error message.
*> utils:::menuInstallPkgs()*
*Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type
= type) :*
* 'lib = "C:/Program Files/R/R-3.4.1/library"' is not writable*
*Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type =
type) : *
2017 Dec 17
0
Auto Data in the ISLR Package
Dear Eric:
Thank you very much. It works nicely.
*Just one more thing;* how to create a new variable (say, *Make*) with *Make
= Ford* for the ford brand and *Make = T**oyota* for the toyota brand.
Once again thank you all.
abou
______________________
*AbouEl-Makarim Aboueissa, PhD*
*Professor of Statistics*
*Department of Mathematics and Statistics*
*University of Southern Maine*
On
2017 Sep 19
1
Graph f(x) = 1/x
Dear Zeileis:
Thank you very much
abou
On Tue, Sep 19, 2017 at 4:13 AM, Achim Zeileis <Achim.Zeileis at uibk.ac.at>
wrote:
>
>
> On Tue, 19 Sep 2017, AbouEl-Makarim Aboueissa wrote:
>
> Dear All: good morning
>>
>> I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But
>> I am getting an error message. Please see below.
>>
2017 Sep 20
0
Install the Package "ISwR"
What if you answer 'Yes' ?
On Wed, Sep 20, 2017 at 1:03 PM, AbouEl-Makarim Aboueissa <
abouelmakarim1962 at gmail.com> wrote:
> Dear All: good morning
>
> I am trying to install the "" package, but I am getting this error message.
>
>
> *> utils:::menuInstallPkgs()*
> *Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type
>
2017 Sep 24
2
Remove spacing at the top and bottom of a plot
Dear All:
Is there is away to remove spacing at the top and the bottom of a plot? If
so, any help will be appreciated.
Please use this code as an example:
par(mfrow=c(1,2))
lizard <- c(6.2, 6.6, 7.1, 7.4, 7.6, 7.9, 8, 8.3, 8.4, 8.5, 8.6,8.8, 8.8,
9.1, 9.2, 9.4, 9.4, 9.7, 9.9, 10.2, 10.4, 10.8,11.3, 11.9)
n.draw <- 100
mu <- 9
n <- 24
SD <- sd(lizard)
draws <-
2017 Sep 19
0
Graph f(x) = 1/x
On Tue, 19 Sep 2017, AbouEl-Makarim Aboueissa wrote:
> Dear All: good morning
>
> I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But
> I am getting an error message. Please see below.
>
> I am getting the error message: *Error in xy.coords(x, y, xlabel, ylabel,
> log) : *
> * 'x' and 'y' lengths differ*
You have "y <
2017 Dec 16
2
Auto Data in the ISLR Package
Dear All:
I would like to create a subset data set *with only* all Ford and all
Toyota cars from the Auto data set in ISLR R Package. Thank you very much
in advance.
Please use the following code to see how is the data look like.
install.packages("ISLR")
library(ISLR)
data(Auto)
head(Auto)
with many thanks
abou
______________________
*AbouEl-Makarim Aboueissa, PhD*
*Professor