These are my data:
USPop
year population
1 1790 3.929214
2 1800 5.308483
3 1810 7.239881
4 1820 9.638453
5 1830 12.860702
6 1840 17.063353
7 1850 23.191876
8 1860 31.443321
9 1870 38.558371
10 1880 50.189209
11 1890 62.979766
12 1900 76.212168
13 1910 92.228496
14 1920 106.021537
15 1930 123.202624
16 1940 132.164569
17 1950 151.325798
18 1960 179.323175
19 1970 203.302031
20 1980 226.542199
21 1990 248.709873
22 2000 281.421906
and I fit this model to it:
populationmodel = nls(population ~ theta1/(1+exp((theta2-year)/theta3)),
start=list(theta1=400,theta2=-49,theta3=.025), data=USPop, trace=TRUE)
but for some reason I keep getting an error when I run it that suggests a problem with how I calculated $\theta_1, \theta_2$, and $\theta_3$. Can anyone explain to me how I would go about calculating the start values for these three variables?