Displaying 20 results from an estimated 8000 matches similar to: "mathematical notation in R"
2009 Jul 28
2
formatting in r
Hello,
I have output that I want to print out. I am having a few issues.
1] output u to power is really nothing more than a 2 x 11 set of values
formed using cbind function
and printed out as a data frame
How can I get it to output over several lines such as seen here?
2] Critical Z etc. were added by hand. I need an example of how I can
mix alphanumeric
and numeric data on
2009 Jul 25
4
graphs
Hello,
I am plotting two distributions and want to draw a vertical line at the
critical point 149.
How can I stop it from going further up than the norm(140,15) curve?
x<-seq(75,225,0.1)
plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy')
abline(v = 149, col = "black")
curve(dnorm(x,mean=150, sd=15),from=75, to=225, col='orange', add=TRUE)
Thank you.
2009 Jul 10
2
IF STATEMENTS
Hello,
I am working on using if statements. What is the error message telling
me here and how do I correct for it?
I have tried various combinations of quotes.
Thank you.
Sincerely,
Mary A. Marion
#Find critical values
crit<-function(n,alpha,type)
{
if (type==twoSided)
{
alpha2=alpha/2
tL<-qt(alpha2,n-1)
tU<-qt(1-alpha2,n-1)
}
if (type==Lower)
{
tL<- -9999
2009 Jul 09
2
naming of columns in R dataframe consisting of mixed data (alphanumeric and numeric)
Hello,
I have an r function that creates the following dataframe tresults2.
Notice that column 1 does not have a column heading.
Tresults2:
[,1]
estparam 18.00000
nullval 20.00000
. . .
ciWidth 2.04622
HalfInterval 1.02311
pertinent code:
results<-cbind( estparam, nullval, t, pv_left, pv_right, pv_two_t,
estse, df, cc, tbox, llim, ulim, ciWidth,
2012 Jul 03
3
design matrix creation in R
Hello,
I want to create a design matrix using R. Can you explain the code which creates the following please? I understand the first part.
b=g1(?) does what?
dd <- data.frame(a = gl(3,4), b = gl(4,1,12)) # balanced 2-way
dd
a b
1 1 1
2 1 2
3 1 3
4 1 4
5 2 1
6 2 2
7 2 3
8 2 4
9 3 1
10 3 2
11 3 3
12 3 4
I am using the tree dataset in R. I want to form a reparameterized design
2011 Nov 01
2
drawing ellipses in R
Hello,
I have been following the thread dated Monday, October 9, 2006 when Kamila Naxerova asked a question about plotting elliptical shapes. Can you explain the equations for X and Y. I believe they used the parametric form of x and y (x=r cos(theta), y=r sin(theta). I don't know what r is here ? Can you explain 1)the origin of these equations and 2) what is r?
Sincerely,
Mary A. Marion
2010 Nov 20
1
extraction of element
Hello,
I want only the value of Beta so the statement? Power<-1-Beta[1] works right.
How to do?? See code below
Beta <- integrate(dnorm,mean=0,sd=1, 2.3552,Inf)
Power<- 1-Beta[1]
Sincerely,
Mary A. Marion
2009 Mar 20
2
print of objects in R
Hello,
I have been watching my output as I create functions and do other things
in r.
One thing I don't like is the [1,] type notation at the beginning of a
line. I have been
able to change that to a number such as 1 2 etc. using
as.data.frame(object).
How can I stop the printing of a line number and column heading if I
want to?
I am thinking about publishing and writing of papers.
2010 Oct 29
2
plot pdf
I want to plot the unstadardized version of a normal plot. Can you explain why that is not working?
Dev.set(1)
xcrit=-1.645
cord.x <- c(-3,seq(-3,xcrit,0.01),xcrit)
cord.y <- c(0,dnorm(seq(-3,xcrit,0.01)),0) # what does final 0 do here?
curve(dnorm(x,0,1),xlim=c(-3,3),main='Normal PDF')
polygon(cord.x,cord.y,col='orange')
2010 Nov 01
1
combining plots (curve + Plot functions)
Hello,
?
What I really want to do is to add a rejection region in the
form of a long rectangle to a density plot I have drawn.?
I am getting? 2 plots.?
How can I add rectangle to first plot?? see code below.
First section works fine.? It just is not quite what I want.
# NORMAL DISTRIBUTION PLOT OF RAW DATA WITH UPPER CRITICAL LEVEL - ok
xcrit=144.1
# *** single-sample Upper one-tailed
2011 Nov 05
1
3-D ellipsoid equations
+
Hello,
The parametric equations of an ellipsoid can be written in terms of spherical coordinates. The three spherical coordinates are converted to Cartesian coordinates by
X=a cos (α) sin(θ)
Y=b sin(α) sin(θ)
Z=c cos(θ)
for α and θ
The parameter α varies from 0 to 2 π and θ varies from 0 to π . Here ( X o , Y o ,Z o ) is the center of the ellipsoid, and θ is the angle
2013 Jun 07
1
Folder permissions not working
I seem to be having a bit of a brain fade with regard to permissions in
samba. I have a share with several folders owned by different groups:
drwxrws--- 13 root accounts 4.0K Jun 7 12:12 Accounts
drwxrws--- 16 ian accounts 4.0K Jun 7 11:24 Administration
drwxrws--- 14 accounts users 4.0K Apr 22 12:05 Downloads
drwxrwsr-x 7 ian users 4.0K Mar 22 13:51
2013 Feb 23
1
Problem importing mail from maildir directory
Hi,
I am trying to import mail from a maildir directory into dovecot using the 'doveadm import' command:
-----------
bash-4.0$ doveadm -D import -u marion maildir:${HOME}/Mail '' ALL
doveadm(marion): Debug: Loading modules from directory: /usr/lib64/dovecot
doveadm(marion): Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
doveadm(marion): Debug: Loading modules
2012 Nov 07
2
pseudo R-squared with likfit (geoR)
We want to compute a pseudo R-squared for a model whose parameter
estimation was based on maximum likelihood (function likfit, package geoR).
I tried to compute the R2 proposed by Maddala (1983) which compare the
maximized likelihood for the model without any predictor and the
maximized likelihood for the model with all predictors.
I got a really low value (0,01%). Did I miss something? Are
2012 Oct 18
1
legend of maps generated by function symbols
I generated maps with the function symbols (graphics). These are basic
maps generated with :
symbols(x,y,circles=myvariable)
where x et y are spatial coordinates corresponding to replicates of
"myvariable".
I would associate legend to this kind of maps, is it possible?
Regards,
Marion.
--
Marion Jacquot
Laboratoire de Chrono-environnement
UMR UFC/CNRS 6249 USC INRA
Universit? de
2003 Jun 26
3
Off Subject
Pardon me for asking this general question with regards to Samba but I've been searching and haven't found a source that would answer my question.
Is there some site, list, etc, that lists companies, schools, etc, who have volunteered information that they use Samba in their day-to-day operations?
This would be of great interest to us as it would show Linux/Samba to be a viable
2011 Jun 22
3
[LLVMdev] ARM thumb-2 instruction used for non-thumb2 CPUs
On Jun 22, 2011, at 7:22 AM, Renato Golin wrote:
> On 22 June 2011 14:33, Damjan Marion <damjan.marion at gmail.com> wrote:
>> Problem is that in case when old binutils are used (in my case freebsd is using old one due to license upgrade to GPLv3) AS doesn't understand new mnemonics and fails.
>
> Indeed, this is new in ARM ARM v7.
>
>
>> Can we change to
2001 Dec 14
1
Using MSDFS
I've set up a dfs share according to instructions. There is one part of the instructions that I don't understand. I've checked the forum archives but can't find any examples which might help.
In the Instructions section (4.1 of the HTML Samba Project Documentation), is shows how to set up the symbolic links in a DFS share, as shown below.
I have 2 Samba servers (SMB1 and SMB2).
2011 Jun 22
3
[LLVMdev] ARM thumb-2 instruction used for non-thumb2 CPUs
On Jun 22, 2011, at 3:16 PM, Renato Golin wrote:
> On 22 June 2011 11:49, Damjan Marion <damjan.marion at gmail.com> wrote:
>> # /opt/llvm/bin/clang -S -ccc-host-triple arm-unknown-freebsd -mcpu=arm926ej-s -mfloat-abi=soft -v -o rrx.S rrx.c
>
> Even though you specified cpu as arm9, it's probably generating
> generic ARM IR (use -emit-llvm -S and see), which defaults
2012 Jan 31
3
function: as.integer
dear r-helpers,
i created an object named A, which looks like this:
A <- c("4.4","1.9","4.1")
now i needed to get numbers instead of characters and for this i used the
function:
as.integer(A)
which resulted in:
[1] 4 1 4
My question is, why the numbers are rounded or more impotantly if
there is a way to keep the decimal numbers?
Thank you very much for