Displaying 6 results from an estimated 6 matches for "mmballar".
2012 Sep 28
4
Merging multiple columns into one column
Good Evening-
I have a dataframe that has 10 columns that has a header and 7306 rows in
each column, I want to combine these columns into one. I utilized the stack
function but it only returned 3/4 of the data...my code is:
where nfcuy_bw is the dataframe with 7305 obs. and 10 variables
Once I apply this code I only receive a data frame with 58440 obs. of 2
variables, of which there should be
2012 May 07
5
Subtracting a matrix 1x28 from a scalar
Afternoon-
I am trying to subtract a matrix, basically a vector of 28 values, each by
the same number to account for differences in regression fitting. I am
taking the 1x28 and minus it by the mean value of the matrix, each number.
The result I receive is a 1X29 matrix. Does anyone know why the result has
an extra value?
> lffeb_march
[1] 6.588926 7.663877 6.917706 6.824374 7.029973
2012 May 08
1
Automating R for Hypothesis Testing
R Users-
I have been trying to automate a manual code that I have developed for
calling in a .csv file, isolating certain rows and columns that correspond
to specified months:
something to the effect
i=name.csv
N=length(i$month)
iphos1=0
iphos2=0
isphos3=0
for i=1,N
if month=1
iphos1=iphos+1
iphos1(iphos1)=i
an so on to call out the months into there own arrays (unless there is a way
I
2012 Sep 27
3
Comparing density plots using same axes or same axes scale
Good Evening-
I have a set of nine scenarios I want to plot to see how the distribution
is changing, if one tail is getting larger in certain scenario, currently I
am using this code
colnames<-dimnames(sag_pdfs)[[2]]
par(mfrow=c(3,3))
for(i in 1:9) {
d<-density(sag[,i])
plot(d,type="n", main=colnames[i])
polygon(d,col="red",border="grey")}
where sag is
2012 Sep 29
3
Removing lower whisker in boxplot to see the effects of the high values
Good Afternoon-
I was wanting to alter the boxplot to remove the lower whisker, both the
whisker line and staple just on the lower end. Is there a way to do this?
As my code is currently:
boxplot(log_loads~ind,data=nfmaum, horizontal=TRUE, notch=T, outline=FALSE,
whisker=0, main="Maumee River Near Future Climate Scenarios", ylab="Log
Load",xlab="Climate Scenarios")
2012 May 01
2
Hypothesis Testing using Wald Criterion for two regression models with dummy variables
I have two models, controlled by dummy variables to see if the models can be
combined into one model with similar intercepts and slopes. Has anyone tried
to conduct this type of test in R. I am utilizing the econometric idea of
hypothesis testing through the hypothesis of coincidence. I have tried to
run an anova with test of Chisq, but I am not sure what the results are
telling. In addition, I