Displaying 20 results from an estimated 200 matches similar to: "Signif. codes"
2010 Oct 08
5
saving object function
Ok so if I have a function:
functest<-function(x){
a<-x+1
b<-x+2
c<-x+3
paste(a)
paste(b)
paste(c)
}
Now I know I can do cat(), or return() on one of them but if I was to run
the function with any number, how could I create objects to save so I could
do, I am wondering if I have more than one object within my function.
functest$a
2009 Feb 14
2
anova help
Hi all, I am trying to run a two factor anova, but one of the factors is a
random factor, now I am also running in SPSS and it seems its dividing by
the wrong term to get the appropriate F term. here is my data. In SPSS the F
scores about double the ones in R, how can I specify one of my factors as a
random factor or change it to where it does the right model fitting? I am
using the lm command
2011 Jan 31
2
Rubin's rules of multiple imputation
Hello all, if I have multiple imputed data sets, is there a command or
function in R in any package you know of to combine those, I know one common
MI approach is rubins rules, is there a way to do this using his rules or
others? I know theres ways, like using Amelia from Gary King's website to
create the imputed data sets, but how to make them into one or combine them
for analysis.
2011 Jan 20
2
splitting a square symmetric matrix
So many matrices are square symmetrical (i.e. variance-covariance matrices),
is there any way to get R to split the matrix on its diagonal and just
return one diagonal?
So if I have
mat<-matrix(c(1,4,3,4,1,2,3,2,1), nrow = 3, ncol=3, byrow=TRUE)
is there anyway to get the lower right diagonal instead of the entire
symmetric matrix?
-------------------------------------------
2010 Jul 18
2
loop troubles
Hi all, I appreciate the help this list has given me before. I have a
question which has been perplexing me. I have been working on doing a
Bayesian calculating inserting studies sequentially after using a
non-informative prior to get a meta-analysis type result. I created a
function using three iterations of this, my code is below. I insert prior
mean and precision (I add precision manually
2010 Jun 13
1
using latticeExtra plotting confidence intervals
I am wanting to plot a 95% confidence band using segplot, yet I am wanting
to have groups. For example if I have males and females, and then I have
them in different races, I want the racial groups in different panels. I
have this minor code, completely made up but gets at what I am wanting, 4
random samples and 4 samples of confidence, I know how to get A & B into one
panel and C&D in to
2009 Dec 26
5
Is SEM package of R suitable for sem analysis
Dears,
I'm a college student and In doing my statistics homework.
I use R with SEM package as my tool for sem analysis,
but my teacher told me AMOS is more suitable for such analysis.
Could someone help tell me whether it is true
that some commercial software is better accepted in academic fields?
Sorry if I should not post such topics here.
--
Best Regards,
Reeyarn T. Lee
Accounting
2010 Oct 06
1
selected value in a vector to make bold
I wasn't sure about the subject so I am sorry about the vagueness, but if I
have a vector of values, how do I get a certain type of vectors to be bold
or italics?
So let x be a vector from -10 to 10, how would I tell it to bold the x
values that are greater than 0? Or like absolute value of 5? Is it possible
to do this in like an if else statement? Could I use
x<-seq(-10,10,1)
2011 Apr 11
1
predict ordered regresssion
Is there a way to get confidence intervals around an ordered regression like
polr() in the MASS package?
-------------------------------------------
Joe King, M.A.
Ph.D. Student
University of Washington - Seattle
206-913-2912
<mailto:jp@joepking.com> jp@joepking.com
-------------------------------------------
Ad astra per aspera - "Through hardships to the stars"
2009 Oct 30
4
opacity under dispersion command under plotrix
Is there anyway to make the lines in the dispersion command come forward in
a plot and allow the fill in the dispersion parameter be transparent so all
of the lines I am using to note confidence intervals are shown?
-------------------------------------------
Joe King, M.A.
Ph.D. Student
University of Washington - Seattle
206-913-2912
jp@joepking.com
2009 Dec 20
1
"Object is not a matrix" Error
I'm trying to follow this guide here:
http://www.ats.ucla.edu/stat/r/modules/dummy_vars.htm
In which I'm creating categorical variables using the factor function.
I am able to go through the example listed above and have everything work,
however, when I try to input my own numbers, I get an error. I input the
following:
> hits = read.csv(file.choose())
> attach(hits)
>
2009 Nov 27
2
layers in xYplot of Hmisc
In the "filled bands" part of xYplot of the Hmisc package, is there a way to
have multiple bands with multiple lines? or does it just allow one for now?
So I had an example bit ago had a made up line and CI, now if I wanted to
make a second line with a CI filled in can I put them on the same plot?
x<-seq(1,10,1)
y<-seq(1,10,1)
ci<-y*.10
ciupper<-y+ci
2009 Dec 15
2
subtitle in Hmisc xYplot
Ok so I am trying to add a subtitle to my xYplot using Hmisc and I have some
dummy code of
x<-seq(1,10,1)
y<-rev(seq(1,10,1))
ci<-y*.10
ciupper<-y+ci
cilower<-y-ci
this code works fine:
xYplot(Cbind(y,ciupper,cilower)~x, type=c("b"),plot.points = TRUE,
method='filled bands', main='main title')
but when I add sub=. at the end and use this
2009 Nov 20
1
Hmisc and Lattice question on gridlines
I have been using lattice xyplot and am quite pleased, and I can use the
type=c("b","g") to have it print gridlines into the page, yet if I want to
have a line plot with points on it, how do I get the xYplot to print
gridlines (I use Hmisc xYplot because of its bands method which allows
plotting of confidence intervals). Any suggestions? I have looked at the
panel functions but
2010 Dec 14
2
multivariate multi regression
Hello,
I want to model my data with the following model:
Y1=X1*coef1+X2*coef2
Y2=X1*coef2+X2*coef3
Note: coef2 appears in both lines
Xi, Yi is input versus output data respectively
How can I do this in R?
I got this far:
lm(Y1~X1+X2,mydata)
now how do I add the second line of the model including the cross
dependency?
Your help is greatly appreciated!
Cheers, Bastiaan
2011 Jan 19
2
VarCorr
I have a loop that I would like to use to extract the "stddev" for
each itteration so I can average the "stddev" for all the runs. It
would be helpful to know how to extract the "stddev" for each run from
the VarCorr. Thanks
MCruns<-1000
sighatlvec<-rep(NA,MCruns)
sighatbvec<-rep(NA,MCruns)
sighatevec<-rep(NA,MCruns)
for(mc in 1:MCruns)
{
2009 Nov 02
3
problems with read.csv
Dear all,
I''d like to ask help on R code to get the same results as the following
Splus code:
>indata<-importData("/home/data_new.csv")
>indata[1:5,4]
[1] 0930 1601 1006 1032 1020
I tried the following R code:
> indata<-read.csv("/home/data_new.csv")
> indata[1:5,4]
[1] 930 1601 1006 1032 1020
I''d like the first
2009 Nov 02
4
Frequency
BAYESIAN INFERENCES FOR MILKING TEMPERAMENT IN CANADIAN HOLSTEINS
Hi All,
I have a data set "x" with several variables. Sample of the data is shown
below
V1 v2 v3 v4
5 6 9 10
3 4 7 10
4 6 10 18
I want the frequency of each data point sorted by their occurrence.
Below is the output that I want
10 =3
6=2
4=2
9=1
5=1
7=1
3=1
How do
2009 Apr 04
2
threshold distribution
Dear ALL
I have a list of data below
0.80010 0.72299 0.69893 0.99597 0.89200 0.69312 0.73613 1.13559
0.85009 0.85804 0.73324 1.04826 0.84002
1.76330 0.71980 0.89416 0.89450 0.98670 0.83571 0.73833 0.66549
0.93641 0.80418 0.95285 0.76876 0.82588
1.09394 1.00195 1.14976 0.80008 1.11947 1.09484 0.81494 0.68696
0.82364 0.84390 0.71402 0.80293 1.02873
all of them are ninty.
Nowaday, i try to find a
2011 Jan 31
3
List of all times zones in R
Hi all, in R I have?Sys.timezone() function to get the current working
Time zone. However I want to have a vector to get the list of all
available time zones, like say, LETTERS gives me all letters. Is there
any function like that?
Thanks in advance,