search for: degree

Displaying 20 results from an estimated 4480 matches for "degree".

2007 Jul 25
5
editing multiple models in one form
Very new to this but would appreciate a hand as this is driving me mad, I''m trying to update both degree and assigned from a single form, the degree section updates fine but assigned just retains the same values, any help much appreciated! my edit.rhtml file looks like: <h1>Editing degree</h1> <%= error_messages_for :degree %> <%= start_form_tag :action => ''update&...
2007 Mar 18
2
ticks labels and R
...quot;n", xlim=c(0,360), ylim=c(-90,90), xlab="l, deg", ylab="b, deg"); points(l, b, cex=vel/60, col=1, pch=21); On this plot I have axis x (denoted by l) ranged in [0,360] with labeling step 20. But I want to set this step equal to 60 and want to set format of labels to degrees. I'm newbie in R and don't know how to change parameters of axis. Especially important to add sign of degree to each tick label. Thanks in advance, -- --------------------------------------------------------------------------------------- Eugene A. Semenko e-mail: sea at sao.ru...
2003 Aug 07
2
plotmath under windows (PR#3672)
...is Windows specific and occurs when using Windows metafile plots. The problem does not occur in a Linux version. It does not occur in the pt rintout when a graphic is saved to a postscript file under Windows. The problem came to light when using plotmath to label a plot with latitudes containing degree symbols. If expression(40 * degree) is used it is written on the default line for labels. If expression(paste(40 * degree, " S") is used it displced closer to the axis. Pasting any character (except "") has this effect. The following code illustrates the problem. par(mfrow...
2010 Aug 25
4
degree C symbol in a function
Hello help, I have changed around some graphing code and made it into a function. Previously they y label of the axis was inserted as text in its own layout box. text(1,1, expression(~degree~C),cex=1) This worked great and resulted in the symbol for degree. In the function, I have changed it so: text(1,1,paste(b_unit),cex=1) and b_unit<-expression(~degree~C) This now inserts ~degree~C instead of the symbol. Any advice? Thanks, Daisy -- Daisy Englert Duursma Room E8C156...
2008 Apr 22
1
Bug in poly() (PR#11243)
Full_Name: Russell Lenth Version: 2.6.2 OS: Windows XP Pro Submission from: (NULL) (128.255.132.36) The poly() function allows a higher-degree polynomial than it should, when raw=FALSE. For example, consider 5 distinct 'x' values, each repeated twice. we can fit a polynomial of degree 8: ===== R> x = rep(1:5, 2) R> y = rnorm(10) R> lm(y ~ poly(x, 8)) Call: lm(formula = y ~ poly(x, 8)) Coefficients: (Intercept) poly(...
2010 Aug 12
3
x-axis label print in 45 degree
Hi how can print x-axis labels in 45 degree in boxplot() (or plot in general)? I can use las=2 to print in 90 degree, but it looks ugly. Is there a simple option to do 45 degree easily? Thanks John
2010 Aug 16
2
Converting degree: minute: second data to decimal degree data, should be simple
Hi All, I have location data set up as degrees: minutes: seconds (for example, 122:45:45) I need to get this data into decimal degree form (122.7625). I know that I need to use the formula Decimal degrees = Degrees + (Minutes/60) + (Seconds/3600) Does anyone know how I can get R to do this? The original data is all in one column (called &...
2003 Oct 21
2
Denominator Degrees of Freedom in lme() -- Adjusting and Understanding Them
Hello all. I was wondering if there is any way to adjust the denominator degrees of freedom in lme(). It seems to me that there is only one method that can be used. As has been pointed out previously on the list, the denominator degrees of freedom given by lme() do not match those given by SAS Proc Mixed or HLM5. Proc Mixed, for example, offers five different options for...
2008 Dec 28
1
how to get degree according to the name of the node?
Hi all, I have two networks for the same group of the users. I want to compare individual's degree in different networks. But how could I get the degrere of the nodes according to its name? When I use degree(g1), I could only get a vector of the degree of each node. But when I turn to g2, I don't know whose degree it is so I can't match it with the degree(g2). Now I'm trying to mak...
2011 Mar 03
2
Plotting Mean in plotting degree distribution
Hi, I am plotting degree distribution of a graph using the function, library(igraph) dd1 = degree.distribution(G) plot(dd1, xlab = "degree", ylab="frequency") I would like to plot the mean of the distribution as a vertical line in the attached plot. Please let me know how to do this. Thanks, Kumar h...
2006 Jul 26
2
residual df in lmer and simulation results
Hello. Douglas Bates has explained in a previous posting to R why he does not output residual degrees of freedom, F values and probabilities in the mixed model (lmer) function: because the usual degrees of freedom (obs - fixed df -1) are not exact and are really only upper bounds. I am interpreting what he said but I am not a professional statistician, so I might be getting this wrong... Does an...
2011 Apr 26
1
Barplot for degree distribution
In barplot for degree distribution x-axis is not seen. See the example below > g = barabasi.game(500, 0.4) > dd1 = degree.distribution(g) > plot(dd1, xlab="degree", ylab = "frequency") whereas barplot doesnot have any x-axis > barplot(dd1, xlab = "degree", ylab = "freque...
2009 Dec 22
2
use of lm() and poly()
...linear regression, as the coefficients do not match the ones from the nonlinear regression #data metal U0 dP 1 0.00 0 2 0.76 10 3 1.43 20 4 2.56 40 5 3.05 50 6 3.52 60 7 3.76 70 8 4.05 80 9 4.24 90 10 4.47 100 #linear d <- seq(0, 4, length.out = 200) for(degree in 1:4) { fm <- lm(dP ~ poly(U0, degree), data = metal) assign(paste("metal", degree, sep="."), fm) lines(d, predict(fm, data.frame(U0=d)), col = degree) } metal.4 Call: lm(formula = dP ~ poly(U0, degree), data = metal) Coefficients: (Interce...
2005 Oct 12
1
step.gam and number of tested smooth functions
...wess functions and when I define all the models that I'm interested in I get something like that: > gam.object.ALC<-gam(X143S~ALC,data=dane,family=binomial) > step.gam.ALC<-step.gam(gam.object.ALC,scope=list("ALC"=~1+ALC+s(ALC,2)+s(ALC,3)+s(ALC,4)+s(ALC,6)+s(ALC,8)+lo(ALC,degree=1,span=.5)+lo(ALC,degree=2,span=.5)+lo(ALC,degree=1,span=.25)+lo(ALC,degree=2,span=.25))) Start: X143S ~ ALC; AIC= 104.0815 Trial: X143S ~ 1; AIC= 111.1054 Trial: X143S ~ s(ALC, 2); AIC= 103.3325 Step : X143S ~ s(ALC, 2) ; AIC= 103.3325 Trial: X143S ~ s(ALC, 3); AIC= 102.9598 Step : X143S...
2005 Mar 15
1
How do I call a masked function in a package without a namespace?
Hello, I work with two packages sna and graph from CRAN resp. Bioconductor. Both packages have a function called "degree". Therefore one of the functions is masked by the other and which one gets called depends on the order of loading. The problem is that both package do not have a namespace, therefore calling the masked function with "package::degree" does not work. See the following transcrip...
2002 Sep 24
4
print(), paste()
Hi, Suppose I have the following lines at the end of a function: answer <- c(2, 1, 0, 4, 5) # In fact, answer will be generate in my # function print(answer) # Print the answer # Now, find the best fitted n degree polynomial print(paste("The best fit is with", which.min(answer) - 1, "-degree polynomial")) this will return: [1] 2 1 0 4 5 [1] "The best fit is with 2 -degree polynomial" Two questions: 1) How can I supress the [1] in the second line in the ou...
2011 Jul 19
2
Incorrect degrees of freedom for splines using GAMM4?
Hello, I'm running mixed models in GAMM4 with 2 (non-nested) random intercepts and I want to include a spline term for one of my exposure variables. However, when I include a spline term, I always get reported degrees of freedom of less than 1, even when I know that my spline is using more than 1 degree of freedom. For example, here is the code for my model: > global.gamm4<-gamm4(zcog~s(adjpatx, fx=TRUE, k=5)+int234+cogagec+cogagesq + + + oldfran +newus +alc2 +alc3 +alc4 +alcmiss +smk2 +smk3 +...
2007 May 02
1
Degrees of freedom in repeated measures glmmPQL
Hello, I've just carried out my first good-looking model using glmmPQL, and the output makes perfect sense in terms of how it fits with our hypothesis and the graphical representation of the data. However, please could you clarify whether my degrees of freedom are appropriate? I had 106 subjects, each of them was observed about 9 times, creating 882 data points. The subjects were in 3 treatment groups, so I have told the model to include subject as a random factor nested within treatment. There are two other variables and I'm interested...
2010 Jun 11
1
Documentation of B-spline function
Goodmorning, This is a documentation related question about the B-spline function in R. In the help file it is stated that: "df degrees of freedom; one can specify df rather than knots; bs() then chooses df-degree-1 knots at suitable quantiles of x (which will ignore missing values)." So if one were to specify a spline with 6 degrees of freedom (and no intercept) then a basis with 6-3-1 =2 internal knots should be created....
2007 Mar 29
2
Plot degree symbol by itself
Dear all, I'm trying to plot the degree symbol by itself between two square brackets. I just want to have "K [?]". So far I got to: expression(K ~ group("[",1*degree,"]")) or expression(K ~ group("[",1^o,"]")) But it won't work without a number or letter. Any suggestions? Thanks,...