Displaying 20 results from an estimated 300 matches similar to: "Plotting sigma symbol with unicode and turning into pdf"
2009 Aug 12
2
Using bold font with bquote
I'm trying to annotate a density plot and I'm using bquote to paste the sigma symbol next
to the numeric text of the standard deviation calculation that I am performing.
I have been able to successfully turn the sigma symbol and numeric output the color blue,
but when I try to change the font of the text to bold, R doesn't seem to recognize the "font="
command in the same way
2009 Aug 11
1
Paste symbol and calculation in plot
I'm trying to annotate a density plot and I would like to have R calculate the
standard deviation and place it in the plot next to the standard deviation symbol
"sigma". I can successfully use the text command to paste "StDev =",round(sd(Data),digits=3))
on the plot. However, I have trouble when I want to replace "StDev" with the Greek
symbol sigma (See code
2012 Mar 22
2
Quicker way to apply values to a function
Hi all,
myint=function(mu,sigma){
integrate(function(x) dnorm(x,mu,sigma)/(1+exp(-x)),-Inf,Inf)$value
}
mymu=seq(-3,3,length(1000))
mysigma=seq(0,1,length(500))[-1]
k=1
v=c()
for (j in 1:length(mymu)) {
for (i in 1:length(mysigma)) {
v[k]=myint(mymu[j],mysigma[i])
k=k+1
}
}
Basically, I want to investigate for what values of mu and sigma, the
integral is divergent.
Is there another way
2012 Oct 20
1
Logistic regression/Cut point? predict ??
I am new to R and I am trying to do a monte carlo simulation where I
generate data and interject error then test various cut points; however, my
output was garbage (at x equal zero, I did not get .50)
I am basically testing the performance of classifiers.
Here is the code:
n <- 1000; # Sample size
fitglm <- function(sigma,tau){
x <- rnorm(n,0,sigma)
intercept <- 0
beta
2003 Sep 06
1
Fitting t-Student(mu, sigma, nu)
Dear R users:
1. Is there a function which fits to the data the t-student distribution
with parameters mu, sigma, nu.
Is the function fitdistr of MASS
with the syntax fitdistr(x, "t")
appropriate for this?
2. Is there a function which can fit the exponential power distribution?
Thanks.
---------------------------------
ÁðïêôÞóôå ôçí äùñåÜí óáò@yahoo.gr
[[alternative
2008 Nov 19
1
mle2 simple question - sigma?
I'm trying to get started with maximum likelihood estimation with a
simple regression equivalent out of Bolker (Ecological Models and Data
in R, p302).
With this code:
#Basic example regression
library(bbmle)
RegData<-data.frame(c(0.3,0.9,0.6),c(1.7,1.1,1.5))
names(RegData)<-c("x", "y")
linregfun = function(a,b,sigma) {
Y.pred = a+b*x
2011 Jul 27
2
Expression: +/-sigma
Dear List,
I am trying to label a plot with the symbol +/- sigma. Using something like
- expression (2*sigma) gives me the symbol 2ó. However, adding +/- to it
beats me.
The code I am using is: plot(x,y,type="l",main=" expression(paste("±",
plain(2*ó)),sep="").
Any suggestion will be appreciated.
Best
Ogbos
[[alternative HTML version deleted]]
2011 Nov 01
1
low sigma in lognormal fit of gamlss
Hi,
I'm playing around with gamlss and don't entirely understand the sigma
result from an attempted lognormal fit.
In the example below, I've created lognormal data with mu=10 and sigma=2.
When I try a gamlss fit, I get an estimated mu=9.947 and sigma=0.69
The mu estimate seems in the ballpark, but sigma is very low. I get similar
results on repeated trials and with Normal and
2008 May 28
1
Suitable package for carrying out sigma and beta convergence in panel data
Dear all
I wish to carry out sigma- and beta-convergence analysis in respect of panel data [wherein current value of one of the variables needs be regressed upon suitably transformed lagged values of another variable(s)]. I am quite new to the R-language and am not very much aware of the availbaility of suitable package(s)/ code in the language. Can any one help me in letting me know of
2011 May 28
3
Three sigma rule
Dear Sir,
I have data, coming from tests, consisting of 300 values. Is there a way in
R with which I can confirm this data to 68-95-99.8 rule or three-sigma rule?
I need to look around percentile ranks and prediction intervals for this
data. I, however, used SixSigma package and used ss.ci() function, which
produced 95% confidence intervals. I still am not certain about percentile
ranks
2015 Apr 10
1
RFC: sigma() in package:stats ?
I'm proposing to add something like this to the stats package :
----------------------------------------------------------
### "The" sigma in lm/nls - "like" models:
sigma <- function(object, ...) UseMethod("sigma")
## works whenever deviance(), nobs() and coef() do fine:
sigma.default <- function (object, use.fallback=TRUE, ...)
2017 Mar 07
0
Potential clue for Bug 16975 - lme fixed sigma - inconsistent REML estimation
Dear list,
I was trying to create a VarClass for nlme to work with Fay-Herriot
(FH) models. The idea was to create a modification of VarComb that
instead of multiplying the variance functions made their sum (I called
it varSum). After some fails etc... I found that the I was not getting
the expected results because I needed to make sigma fixed. Trying to
find how to make sigma fixed I run into
2009 May 12
1
times family unavailable in postscript device (Ubuntu Linux)
I'm running Ubuntu 9.04. I could use some advice about fonts in
postscript devices.
> sessionInfo()
R version 2.9.0 (2009-04-17)
i486-pc-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
attached base
2001 Mar 15
1
Printing problems with wine
Hello,
I have some Problems with getting WINE to print. I'm using wine on a
non-Windows machine with Debian Potato. Everything works fine except
printing. When I try to print something I always get something like
"Printer not setup properly".
The errormessage from wine is
err:psdrv:PSDRV_AFMGetCharMetrics No whitespace found.
My .wine/config -file looks like this:
[parallelports]
2009 Nov 17
3
CM Fonts in PDF output
Hi!
On Linux I try to produce pdf graphs with computer modern fonts so that they
look nice in LaTeX documents. I run for example:
------
CM <- Type1Font( "CM",
c("/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmr8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmb8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmri8a.afm",
2010 Oct 28
2
How to enable Arial font for postcript/pdf figure on Windows?
Hi,
I need to generate some figure using the Arial font as a requirement for
PLoS.
Following their guidelines, I have converted the windows font files
arial.tff files to .afm using tff2afm (exec file from MikTeX), but when I
try to generate a postcript file, the postcript device does not recognize
the .afm files.
The code I use to test the new font is the following:
2012 Feb 09
1
Arial font in eps figures in R
Hi,
I am trying to create a graph using Arial font (as required by PLoS One). I have read probably all posts in R-help on this topic, as wells as R-news 2006.
The code I have been trying is following:
Arial <- Type1Font(family="Arial",
metrics=c("ArialMT.afm", "arial-BoldMT.afm", "Arial-ItalicMT.afm",
2011 Feb 15
2
Sweave doesn't hand on width of special characters of Computer Modern fonts to LaTeX
Hello R users,
Using R, Sweave and the cmsyase.afm font it is possible to write LaTeX
documents including R figures with text in the Computer Modern Fonts:
\documentclass{article}
\usepackage{Sweave}
\begin{document}
<<echo = false, results = hide>>=
CM <- Type1Font("CM",
c(file.path("C:/texlive/2009/texmf-dist/fonts/afm/public/cm-lgc",
2010 Sep 11
2
Latex fonts in R graphics
Hello, R users.
I am trying to embed Computer modern fonts to an R plot and I get the
following error.
CM <- Type1Font("CM",
+ c(paste("cm-lgc/fonts/afm/public/cm-lgc/",
+ c("fcmr8a.afm", "fcmb8a.afm", "fcmri8a.afm", "fcmbi8a.afm"), sep=""),
+ "./cmsyase.afm"))
> pdf("cm.pdf",
2005 Aug 22
2
pdf font embedding --- again
dear R wizards--- I would like to do some book-on-demand printing at a
popular printer named lulu, but lulu requires inclusion even of the
basic postscript fonts. Interestingly, my book itself does not need
the 14 base acrobat fonts, only the embedded R figures do. Of course,
I really would like to get pdftex to embed the fonts, but how to do
this is not obvious either. [This method seems